From 2843552f911f83b02c57b7f268f360b5a875609e Mon Sep 17 00:00:00 2001 From: Talon-One SDK Generator Date: Wed, 16 Jul 2025 09:41:45 +0000 Subject: [PATCH] update to 25.17.0 --- README.md | 17 +- api/openapi.yaml | 311 +++++++++++++----- build.gradle | 4 +- build.sbt | 2 +- docs/CampaignCollectionEditedNotification.md | 7 +- ...ampaignCollectionEditedNotificationItem.md | 16 + docs/CampaignCreatedNotification.md | 7 +- docs/CampaignCreatedNotificationItem.md | 16 + docs/CampaignDeletedNotification.md | 6 +- docs/CampaignDeletedNotificationItem.md | 15 + docs/CampaignEditedNotification.md | 7 +- docs/CampaignEditedNotificationItem.md | 16 + docs/CampaignNotificationBase.md | 13 + docs/CampaignNotificationGeneric.md | 14 + docs/CampaignNotificationItemBase.md | 12 + docs/CampaignRulesetChangedNotification.md | 7 +- .../CampaignRulesetChangedNotificationItem.md | 16 + docs/CampaignStateChangedNotification.md | 8 +- docs/CampaignStateChangedNotificationItem.md | 17 + docs/StrikethroughChangedItem.md | 1 + pom.xml | 2 +- src/main/java/one/talon/ApiClient.java | 2 +- .../CampaignCollectionEditedNotification.java | 106 +++--- ...paignCollectionEditedNotificationItem.java | 187 +++++++++++ .../model/CampaignCreatedNotification.java | 106 +++--- .../CampaignCreatedNotificationItem.java | 187 +++++++++++ .../model/CampaignDeletedNotification.java | 104 ++++-- .../CampaignDeletedNotificationItem.java | 157 +++++++++ .../model/CampaignEditedNotification.java | 103 +++--- .../model/CampaignEditedNotificationItem.java | 186 +++++++++++ .../talon/model/CampaignNotificationBase.java | 127 +++++++ .../model/CampaignNotificationGeneric.java | 162 +++++++++ .../model/CampaignNotificationItemBase.java | 98 ++++++ .../CampaignRulesetChangedNotification.java | 104 +++--- ...ampaignRulesetChangedNotificationItem.java | 187 +++++++++++ .../CampaignStateChangedNotification.java | 125 +++---- .../CampaignStateChangedNotificationItem.java | 214 ++++++++++++ .../talon/model/StrikethroughChangedItem.java | 42 ++- ...nCollectionEditedNotificationItemTest.java | 78 +++++ ...paignCollectionEditedNotificationTest.java | 24 +- .../CampaignCreatedNotificationItemTest.java | 78 +++++ .../CampaignCreatedNotificationTest.java | 24 +- .../CampaignDeletedNotificationItemTest.java | 69 ++++ .../CampaignDeletedNotificationTest.java | 25 +- .../CampaignEditedNotificationItemTest.java | 77 +++++ .../model/CampaignEditedNotificationTest.java | 23 +- .../model/CampaignNotificationBaseTest.java | 59 ++++ .../CampaignNotificationGenericTest.java | 69 ++++ .../CampaignNotificationItemBaseTest.java | 51 +++ ...ignRulesetChangedNotificationItemTest.java | 77 +++++ ...ampaignRulesetChangedNotificationTest.java | 23 +- ...paignStateChangedNotificationItemTest.java | 85 +++++ .../CampaignStateChangedNotificationTest.java | 31 +- .../model/StrikethroughChangedItemTest.java | 11 + 54 files changed, 3027 insertions(+), 488 deletions(-) create mode 100644 docs/CampaignCollectionEditedNotificationItem.md create mode 100644 docs/CampaignCreatedNotificationItem.md create mode 100644 docs/CampaignDeletedNotificationItem.md create mode 100644 docs/CampaignEditedNotificationItem.md create mode 100644 docs/CampaignNotificationBase.md create mode 100644 docs/CampaignNotificationGeneric.md create mode 100644 docs/CampaignNotificationItemBase.md create mode 100644 docs/CampaignRulesetChangedNotificationItem.md create mode 100644 docs/CampaignStateChangedNotificationItem.md create mode 100644 src/main/java/one/talon/model/CampaignCollectionEditedNotificationItem.java create mode 100644 src/main/java/one/talon/model/CampaignCreatedNotificationItem.java create mode 100644 src/main/java/one/talon/model/CampaignDeletedNotificationItem.java create mode 100644 src/main/java/one/talon/model/CampaignEditedNotificationItem.java create mode 100644 src/main/java/one/talon/model/CampaignNotificationBase.java create mode 100644 src/main/java/one/talon/model/CampaignNotificationGeneric.java create mode 100644 src/main/java/one/talon/model/CampaignNotificationItemBase.java create mode 100644 src/main/java/one/talon/model/CampaignRulesetChangedNotificationItem.java create mode 100644 src/main/java/one/talon/model/CampaignStateChangedNotificationItem.java create mode 100644 src/test/java/one/talon/model/CampaignCollectionEditedNotificationItemTest.java create mode 100644 src/test/java/one/talon/model/CampaignCreatedNotificationItemTest.java create mode 100644 src/test/java/one/talon/model/CampaignDeletedNotificationItemTest.java create mode 100644 src/test/java/one/talon/model/CampaignEditedNotificationItemTest.java create mode 100644 src/test/java/one/talon/model/CampaignNotificationBaseTest.java create mode 100644 src/test/java/one/talon/model/CampaignNotificationGenericTest.java create mode 100644 src/test/java/one/talon/model/CampaignNotificationItemBaseTest.java create mode 100644 src/test/java/one/talon/model/CampaignRulesetChangedNotificationItemTest.java create mode 100644 src/test/java/one/talon/model/CampaignStateChangedNotificationItemTest.java diff --git a/README.md b/README.md index b30abb28..38d2c1e8 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Add this dependency to your project's POM: one.talon talon-one-client - 13.1.0 + 25.17.0 compile ``` @@ -45,7 +45,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:13.1.0" +compile "one.talon:talon-one-client:25.17.0" ``` ### Others @@ -475,7 +475,6 @@ Class | Method | HTTP request | Description - [BaseSamlConnection](docs/BaseSamlConnection.md) - [Binding](docs/Binding.md) - [BulkApplicationNotification](docs/BulkApplicationNotification.md) -- [BulkCampaignNotification](docs/BulkCampaignNotification.md) - [BulkOperationOnCampaigns](docs/BulkOperationOnCampaigns.md) - [Campaign](docs/Campaign.md) - [CampaignActivationRequest](docs/CampaignActivationRequest.md) @@ -483,13 +482,17 @@ Class | Method | HTTP request | Description - [CampaignBudget](docs/CampaignBudget.md) - [CampaignCollection](docs/CampaignCollection.md) - [CampaignCollectionEditedNotification](docs/CampaignCollectionEditedNotification.md) +- [CampaignCollectionEditedNotificationItem](docs/CampaignCollectionEditedNotificationItem.md) - [CampaignCollectionWithoutPayload](docs/CampaignCollectionWithoutPayload.md) - [CampaignCopy](docs/CampaignCopy.md) - [CampaignCreatedNotification](docs/CampaignCreatedNotification.md) +- [CampaignCreatedNotificationItem](docs/CampaignCreatedNotificationItem.md) - [CampaignDeactivationRequest](docs/CampaignDeactivationRequest.md) - [CampaignDeletedNotification](docs/CampaignDeletedNotification.md) +- [CampaignDeletedNotificationItem](docs/CampaignDeletedNotificationItem.md) - [CampaignDetail](docs/CampaignDetail.md) - [CampaignEditedNotification](docs/CampaignEditedNotification.md) +- [CampaignEditedNotificationItem](docs/CampaignEditedNotificationItem.md) - [CampaignEntity](docs/CampaignEntity.md) - [CampaignEvaluationGroup](docs/CampaignEvaluationGroup.md) - [CampaignEvaluationPosition](docs/CampaignEvaluationPosition.md) @@ -497,17 +500,19 @@ Class | Method | HTTP request | Description - [CampaignEvaluationTreeChangedNotification](docs/CampaignEvaluationTreeChangedNotification.md) - [CampaignGroup](docs/CampaignGroup.md) - [CampaignGroupEntity](docs/CampaignGroupEntity.md) -- [CampaignNotification](docs/CampaignNotification.md) -- [CampaignNotificationData](docs/CampaignNotificationData.md) -- [CampaignNotificationMessage](docs/CampaignNotificationMessage.md) +- [CampaignNotificationBase](docs/CampaignNotificationBase.md) +- [CampaignNotificationGeneric](docs/CampaignNotificationGeneric.md) +- [CampaignNotificationItemBase](docs/CampaignNotificationItemBase.md) - [CampaignNotificationPolicy](docs/CampaignNotificationPolicy.md) - [CampaignRulesetChangedNotification](docs/CampaignRulesetChangedNotification.md) +- [CampaignRulesetChangedNotificationItem](docs/CampaignRulesetChangedNotificationItem.md) - [CampaignSearch](docs/CampaignSearch.md) - [CampaignSet](docs/CampaignSet.md) - [CampaignSetBranchNode](docs/CampaignSetBranchNode.md) - [CampaignSetLeafNode](docs/CampaignSetLeafNode.md) - [CampaignSetNode](docs/CampaignSetNode.md) - [CampaignStateChangedNotification](docs/CampaignStateChangedNotification.md) +- [CampaignStateChangedNotificationItem](docs/CampaignStateChangedNotificationItem.md) - [CampaignStoreBudget](docs/CampaignStoreBudget.md) - [CampaignStoreBudgetLimitConfig](docs/CampaignStoreBudgetLimitConfig.md) - [CampaignTemplate](docs/CampaignTemplate.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 244e0c83..415e9f19 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -11953,20 +11953,6 @@ components: - data - totalResultSize type: object - BulkCampaignNotification: - properties: - totalResultSize: - example: 1 - format: int64 - type: integer - data: - items: - $ref: '#/components/schemas/CampaignNotification' - type: array - required: - - data - - totalResultSize - type: object CampaignCollection: properties: id: @@ -12105,6 +12091,27 @@ components: type: integer type: array type: object + CampaignNotificationGeneric: + properties: + NotificationType: + description: The type of the notification + example: CampaignNotification + type: string + TotalResultSize: + description: The total size of the result set. + format: int64 + type: integer + Data: + description: A list of campaign notification data. + items: + properties: {} + type: object + type: array + x-fieldType: '[]interface{}' + required: + - Data + - TotalResultSize + type: object CampaignStoreBudget: properties: id: @@ -38714,52 +38721,28 @@ components: required: - itemFilter type: object - CampaignStateChangedNotification: - description: A notification regarding a campaign whose state changed. + CampaignNotificationBase: properties: - campaign: - $ref: '#/components/schemas/Campaign' - oldState: - description: | - The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] - example: disabled - type: string - newState: - description: | - The campaign's new state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] - example: running + NotificationType: + description: The type of the notification + example: CampaignNotification type: string - ruleset: - $ref: '#/components/schemas/Ruleset' - required: - - campaign - - newState - - oldState - type: object - CampaignRulesetChangedNotification: - description: A notification regarding a campaign whose ruleset was changed. - properties: - campaign: - $ref: '#/components/schemas/Campaign' - oldRuleset: - $ref: '#/components/schemas/Ruleset' - ruleset: - $ref: '#/components/schemas/Ruleset' + TotalResultSize: + description: The total size of the result set. + format: int64 + type: integer required: - - campaign + - TotalResultSize type: object - CampaignEditedNotification: - description: A notification regarding a campaign which was edited. + CampaignNotificationItemBase: properties: - campaign: - $ref: '#/components/schemas/Campaign' - oldCampaign: - $ref: '#/components/schemas/Campaign' - ruleset: - $ref: '#/components/schemas/Ruleset' + Event: + description: | + The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + example: campaign_state_changed + type: string required: - - campaign - - oldCampaign + - Event type: object CampaignEvaluationPosition: description: The campaign position within the evaluation tree. @@ -38785,9 +38768,14 @@ components: - groupName - position type: object - CampaignCreatedNotification: + CampaignCreatedNotificationItem: description: A notification regarding a campaign that was created. properties: + Event: + description: | + The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + example: campaign_state_changed + type: string campaign: $ref: '#/components/schemas/Campaign' ruleset: @@ -38795,63 +38783,210 @@ components: evaluationPosition: $ref: '#/components/schemas/CampaignEvaluationPosition' required: + - Event - campaign - evaluationPosition type: object - CampaignDeletedNotification: - description: A notification regarding a campaign that was deleted. + CampaignCreatedNotification: properties: + NotificationType: + description: The type of the notification + example: CampaignNotification + type: string + TotalResultSize: + description: The total size of the result set. + format: int64 + type: integer + Data: + description: A list of campaign notification data. + items: + $ref: '#/components/schemas/CampaignCreatedNotificationItem' + type: array + required: + - TotalResultSize + type: object + CampaignStateChangedNotificationItem: + description: A notification regarding a campaign whose state changed. + properties: + Event: + description: | + The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + example: campaign_state_changed + type: string campaign: $ref: '#/components/schemas/Campaign' - deletedAt: - description: Time when the campaign was deleted. - example: 2022-11-10T23:00:00Z - format: date-time + oldState: + description: | + The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] + example: disabled + type: string + newState: + description: | + The campaign's new state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] + example: running type: string + ruleset: + $ref: '#/components/schemas/Ruleset' required: + - Event - campaign - - deletedAt + - newState + - oldState type: object - CampaignCollectionEditedNotification: - description: A notification regarding a collection that was edited. + CampaignStateChangedNotification: + properties: + NotificationType: + description: The type of the notification + example: CampaignNotification + type: string + TotalResultSize: + description: The total size of the result set. + format: int64 + type: integer + Data: + description: A list of campaign notification data. + items: + $ref: '#/components/schemas/CampaignStateChangedNotificationItem' + type: array + required: + - TotalResultSize + type: object + CampaignRulesetChangedNotificationItem: + description: A notification regarding a campaign whose ruleset was changed. properties: + Event: + description: | + The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + example: campaign_state_changed + type: string campaign: $ref: '#/components/schemas/Campaign' + oldRuleset: + $ref: '#/components/schemas/Ruleset' ruleset: $ref: '#/components/schemas/Ruleset' - collection: - $ref: '#/components/schemas/CollectionWithoutPayload' required: + - Event - campaign - - collection type: object - CampaignNotification: + CampaignRulesetChangedNotification: properties: - event: + NotificationType: + description: The type of the notification + example: CampaignNotification + type: string + TotalResultSize: + description: The total size of the result set. + format: int64 + type: integer + Data: + description: A list of campaign notification data. + items: + $ref: '#/components/schemas/CampaignRulesetChangedNotificationItem' + type: array + required: + - TotalResultSize + type: object + CampaignEditedNotificationItem: + description: A notification regarding a campaign which was edited. + properties: + Event: description: | The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] example: campaign_state_changed type: string + campaign: + $ref: '#/components/schemas/Campaign' + oldCampaign: + $ref: '#/components/schemas/Campaign' + ruleset: + $ref: '#/components/schemas/Ruleset' required: - - event + - Event + - campaign + - oldCampaign type: object - CampaignNotificationData: + CampaignEditedNotification: properties: - Notification: - $ref: '#/components/schemas/CampaignNotification' - AccountID: + NotificationType: + description: The type of the notification + example: CampaignNotification + type: string + TotalResultSize: + description: The total size of the result set. format: int64 type: integer - ApplicationID: + Data: + description: A list of campaign notification data. + items: + $ref: '#/components/schemas/CampaignEditedNotificationItem' + type: array + required: + - TotalResultSize + type: object + CampaignCollectionEditedNotificationItem: + description: A notification regarding a collection that was edited. + properties: + Event: + description: | + The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + example: campaign_state_changed + type: string + campaign: + $ref: '#/components/schemas/Campaign' + ruleset: + $ref: '#/components/schemas/Ruleset' + collection: + $ref: '#/components/schemas/CollectionWithoutPayload' + required: + - Event + - campaign + - collection + type: object + CampaignCollectionEditedNotification: + properties: + NotificationType: + description: The type of the notification + example: CampaignNotification + type: string + TotalResultSize: + description: The total size of the result set. format: int64 type: integer + Data: + description: A list of campaign notification data. + items: + $ref: '#/components/schemas/CampaignCollectionEditedNotificationItem' + type: array required: - - AccountID - - ApplicationID - - Notification + - TotalResultSize + type: object + CampaignDeletedNotificationItem: + description: A notification regarding a campaign that was deleted. + properties: + Event: + description: | + The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + example: campaign_state_changed + type: string + campaign: + $ref: '#/components/schemas/Campaign' + deletedAt: + description: Time when the campaign was deleted. + example: 2022-11-10T23:00:00Z + format: date-time + type: string + required: + - Event + - campaign + - deletedAt type: object - CampaignNotificationMessage: + CampaignDeletedNotification: properties: + NotificationType: + description: The type of the notification + example: CampaignNotification + type: string TotalResultSize: description: The total size of the result set. format: int64 @@ -38859,10 +38994,9 @@ components: Data: description: A list of campaign notification data. items: - $ref: '#/components/schemas/CampaignNotificationData' + $ref: '#/components/schemas/CampaignDeletedNotificationItem' type: array required: - - Data - TotalResultSize type: object CampaignEvaluationTreeChangedNotification: @@ -38959,6 +39093,21 @@ components: description: The price of the changed item. example: 99.99 type: number + prices: + additionalProperties: + $ref: '#/components/schemas/PriceDetail' + description: | + A map of keys and values representing the price types and related price adjustment details for this cart item. + The keys correspond to the `priceType` names. + example: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2025-05-25T00:00:00Z + adjustmentEffectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 + type: object evaluatedAt: description: The evaluation time of the changed item. example: 2020-06-10T09:05:27.993483Z diff --git a/build.gradle b/build.gradle index e5a70663..abfed821 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'java' group = 'one.talon' -version = '13.1.0' +version = '25.17.0' buildscript { repositories { @@ -102,7 +102,7 @@ dependencies { compile "com.google.code.findbugs:jsr305:3.0.2" compile 'com.squareup.okhttp3:okhttp:3.14.7' compile 'com.squareup.okhttp3:logging-interceptor:3.14.7' - compile 'com.google.code.gson:gson:2.13.0' + compile 'com.google.code.gson:gson:2.8.6' compile 'io.gsonfire:gson-fire:1.8.4' compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.10' compile 'org.threeten:threetenbp:1.4.3' diff --git a/build.sbt b/build.sbt index 371cf7fd..d29a602f 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 := "13.1.0", + version := "25.17.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/CampaignCollectionEditedNotification.md b/docs/CampaignCollectionEditedNotification.md index 575198fd..87bc76cb 100644 --- a/docs/CampaignCollectionEditedNotification.md +++ b/docs/CampaignCollectionEditedNotification.md @@ -2,14 +2,13 @@ # CampaignCollectionEditedNotification -A notification regarding a collection that was edited. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**Campaign**](Campaign.md) | | -**ruleset** | [**Ruleset**](Ruleset.md) | | [optional] -**collection** | [**CollectionWithoutPayload**](CollectionWithoutPayload.md) | | +**notificationType** | **String** | The type of the notification | [optional] +**totalResultSize** | **Long** | The total size of the result set. | +**data** | [**List<CampaignCollectionEditedNotificationItem>**](CampaignCollectionEditedNotificationItem.md) | A list of campaign notification data. | [optional] diff --git a/docs/CampaignCollectionEditedNotificationItem.md b/docs/CampaignCollectionEditedNotificationItem.md new file mode 100644 index 00000000..72993efe --- /dev/null +++ b/docs/CampaignCollectionEditedNotificationItem.md @@ -0,0 +1,16 @@ + + +# CampaignCollectionEditedNotificationItem + +A notification regarding a collection that was edited. +## Properties + +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] +**collection** | [**CollectionWithoutPayload**](CollectionWithoutPayload.md) | | + + + diff --git a/docs/CampaignCreatedNotification.md b/docs/CampaignCreatedNotification.md index 05e65abc..4dab8177 100644 --- a/docs/CampaignCreatedNotification.md +++ b/docs/CampaignCreatedNotification.md @@ -2,14 +2,13 @@ # CampaignCreatedNotification -A notification regarding a campaign that was created. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**Campaign**](Campaign.md) | | -**ruleset** | [**Ruleset**](Ruleset.md) | | [optional] -**evaluationPosition** | [**CampaignEvaluationPosition**](CampaignEvaluationPosition.md) | | +**notificationType** | **String** | The type of the notification | [optional] +**totalResultSize** | **Long** | The total size of the result set. | +**data** | [**List<CampaignCreatedNotificationItem>**](CampaignCreatedNotificationItem.md) | A list of campaign notification data. | [optional] diff --git a/docs/CampaignCreatedNotificationItem.md b/docs/CampaignCreatedNotificationItem.md new file mode 100644 index 00000000..dfeed27f --- /dev/null +++ b/docs/CampaignCreatedNotificationItem.md @@ -0,0 +1,16 @@ + + +# CampaignCreatedNotificationItem + +A notification regarding a campaign that was created. +## Properties + +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] +**evaluationPosition** | [**CampaignEvaluationPosition**](CampaignEvaluationPosition.md) | | + + + diff --git a/docs/CampaignDeletedNotification.md b/docs/CampaignDeletedNotification.md index 9f2d49be..fe75fb97 100644 --- a/docs/CampaignDeletedNotification.md +++ b/docs/CampaignDeletedNotification.md @@ -2,13 +2,13 @@ # CampaignDeletedNotification -A notification regarding a campaign that was deleted. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**Campaign**](Campaign.md) | | -**deletedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time when the campaign was deleted. | +**notificationType** | **String** | The type of the notification | [optional] +**totalResultSize** | **Long** | The total size of the result set. | +**data** | [**List<CampaignDeletedNotificationItem>**](CampaignDeletedNotificationItem.md) | A list of campaign notification data. | [optional] diff --git a/docs/CampaignDeletedNotificationItem.md b/docs/CampaignDeletedNotificationItem.md new file mode 100644 index 00000000..b059e8b8 --- /dev/null +++ b/docs/CampaignDeletedNotificationItem.md @@ -0,0 +1,15 @@ + + +# CampaignDeletedNotificationItem + +A notification regarding a campaign that was deleted. +## Properties + +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) | | +**deletedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time when the campaign was deleted. | + + + diff --git a/docs/CampaignEditedNotification.md b/docs/CampaignEditedNotification.md index bae43911..bd62b8c6 100644 --- a/docs/CampaignEditedNotification.md +++ b/docs/CampaignEditedNotification.md @@ -2,14 +2,13 @@ # CampaignEditedNotification -A notification regarding a campaign which was edited. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**Campaign**](Campaign.md) | | -**oldCampaign** | [**Campaign**](Campaign.md) | | -**ruleset** | [**Ruleset**](Ruleset.md) | | [optional] +**notificationType** | **String** | The type of the notification | [optional] +**totalResultSize** | **Long** | The total size of the result set. | +**data** | [**List<CampaignEditedNotificationItem>**](CampaignEditedNotificationItem.md) | A list of campaign notification data. | [optional] diff --git a/docs/CampaignEditedNotificationItem.md b/docs/CampaignEditedNotificationItem.md new file mode 100644 index 00000000..7cbbee39 --- /dev/null +++ b/docs/CampaignEditedNotificationItem.md @@ -0,0 +1,16 @@ + + +# CampaignEditedNotificationItem + +A notification regarding a campaign which was edited. +## Properties + +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) | | +**oldCampaign** | [**Campaign**](Campaign.md) | | +**ruleset** | [**Ruleset**](Ruleset.md) | | [optional] + + + diff --git a/docs/CampaignNotificationBase.md b/docs/CampaignNotificationBase.md new file mode 100644 index 00000000..01beee21 --- /dev/null +++ b/docs/CampaignNotificationBase.md @@ -0,0 +1,13 @@ + + +# CampaignNotificationBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notificationType** | **String** | The type of the notification | [optional] +**totalResultSize** | **Long** | The total size of the result set. | + + + diff --git a/docs/CampaignNotificationGeneric.md b/docs/CampaignNotificationGeneric.md new file mode 100644 index 00000000..cf1df222 --- /dev/null +++ b/docs/CampaignNotificationGeneric.md @@ -0,0 +1,14 @@ + + +# CampaignNotificationGeneric + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notificationType** | **String** | The type of the notification | [optional] +**totalResultSize** | **Long** | The total size of the result set. | +**data** | **List<Object>** | A list of campaign notification data. | + + + diff --git a/docs/CampaignNotificationItemBase.md b/docs/CampaignNotificationItemBase.md new file mode 100644 index 00000000..8f9fe083 --- /dev/null +++ b/docs/CampaignNotificationItemBase.md @@ -0,0 +1,12 @@ + + +# CampaignNotificationItemBase + +## Properties + +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'] | + + + diff --git a/docs/CampaignRulesetChangedNotification.md b/docs/CampaignRulesetChangedNotification.md index 385319b1..86f5a568 100644 --- a/docs/CampaignRulesetChangedNotification.md +++ b/docs/CampaignRulesetChangedNotification.md @@ -2,14 +2,13 @@ # CampaignRulesetChangedNotification -A notification regarding a campaign whose ruleset was changed. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**Campaign**](Campaign.md) | | -**oldRuleset** | [**Ruleset**](Ruleset.md) | | [optional] -**ruleset** | [**Ruleset**](Ruleset.md) | | [optional] +**notificationType** | **String** | The type of the notification | [optional] +**totalResultSize** | **Long** | The total size of the result set. | +**data** | [**List<CampaignRulesetChangedNotificationItem>**](CampaignRulesetChangedNotificationItem.md) | A list of campaign notification data. | [optional] diff --git a/docs/CampaignRulesetChangedNotificationItem.md b/docs/CampaignRulesetChangedNotificationItem.md new file mode 100644 index 00000000..fcd0760d --- /dev/null +++ b/docs/CampaignRulesetChangedNotificationItem.md @@ -0,0 +1,16 @@ + + +# CampaignRulesetChangedNotificationItem + +A notification regarding a campaign whose ruleset was changed. +## Properties + +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] +**ruleset** | [**Ruleset**](Ruleset.md) | | [optional] + + + diff --git a/docs/CampaignStateChangedNotification.md b/docs/CampaignStateChangedNotification.md index 9891e1b0..99210601 100644 --- a/docs/CampaignStateChangedNotification.md +++ b/docs/CampaignStateChangedNotification.md @@ -2,15 +2,13 @@ # CampaignStateChangedNotification -A notification regarding a campaign whose state changed. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**Campaign**](Campaign.md) | | -**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] +**notificationType** | **String** | The type of the notification | [optional] +**totalResultSize** | **Long** | The total size of the result set. | +**data** | [**List<CampaignStateChangedNotificationItem>**](CampaignStateChangedNotificationItem.md) | A list of campaign notification data. | [optional] diff --git a/docs/CampaignStateChangedNotificationItem.md b/docs/CampaignStateChangedNotificationItem.md new file mode 100644 index 00000000..16322f2e --- /dev/null +++ b/docs/CampaignStateChangedNotificationItem.md @@ -0,0 +1,17 @@ + + +# CampaignStateChangedNotificationItem + +A notification regarding a campaign whose state changed. +## Properties + +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) | | +**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] + + + diff --git a/docs/StrikethroughChangedItem.md b/docs/StrikethroughChangedItem.md index 0bc2c67c..d61a21e5 100644 --- a/docs/StrikethroughChangedItem.md +++ b/docs/StrikethroughChangedItem.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **sku** | **String** | The unique SKU of the changed item. | **version** | **Long** | The version of the changed item. | **price** | [**BigDecimal**](BigDecimal.md) | The price of the changed item. | +**prices** | [**Map<String, PriceDetail>**](PriceDetail.md) | A map of keys and values representing the price types and related price adjustment details for this cart item. The keys correspond to the `priceType` names. | [optional] **evaluatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The evaluation time of the changed item. | **effects** | [**List<StrikethroughEffect>**](StrikethroughEffect.md) | | [optional] diff --git a/pom.xml b/pom.xml index ddb5564a..a9b961c7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ talon-one-client jar talon-one-client - 13.1.0 + 25.17.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 29913289..0b849a68 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/13.1.0/java"); + setUserAgent("OpenAPI-Generator/25.17.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/one/talon/model/CampaignCollectionEditedNotification.java b/src/main/java/one/talon/model/CampaignCollectionEditedNotification.java index 0106aec7..7e77e8b6 100644 --- a/src/main/java/one/talon/model/CampaignCollectionEditedNotification.java +++ b/src/main/java/one/talon/model/CampaignCollectionEditedNotification.java @@ -23,93 +23,101 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.CollectionWithoutPayload; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignCollectionEditedNotificationItem; /** - * A notification regarding a collection that was edited. + * CampaignCollectionEditedNotification */ -@ApiModel(description = "A notification regarding a collection that was edited.") public class CampaignCollectionEditedNotification { - public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private Campaign campaign; + public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) + private String notificationType; - public static final String SERIALIZED_NAME_RULESET = "ruleset"; - @SerializedName(SERIALIZED_NAME_RULESET) - private Ruleset ruleset; + 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_COLLECTION = "collection"; - @SerializedName(SERIALIZED_NAME_COLLECTION) - private CollectionWithoutPayload collection; + public static final String SERIALIZED_NAME_DATA = "Data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; - public CampaignCollectionEditedNotification campaign(Campaign campaign) { + public CampaignCollectionEditedNotification notificationType(String notificationType) { - this.campaign = campaign; + this.notificationType = notificationType; return this; } /** - * Get campaign - * @return campaign + * The type of the notification + * @return notificationType **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "CampaignNotification", value = "The type of the notification") - public Campaign getCampaign() { - return campaign; + public String getNotificationType() { + return notificationType; } - public void setCampaign(Campaign campaign) { - this.campaign = campaign; + public void setNotificationType(String notificationType) { + this.notificationType = notificationType; } - public CampaignCollectionEditedNotification ruleset(Ruleset ruleset) { + public CampaignCollectionEditedNotification totalResultSize(Long totalResultSize) { - this.ruleset = ruleset; + this.totalResultSize = totalResultSize; return this; } /** - * Get ruleset - * @return ruleset + * The total size of the result set. + * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "The total size of the result set.") - public Ruleset getRuleset() { - return ruleset; + public Long getTotalResultSize() { + return totalResultSize; } - public void setRuleset(Ruleset ruleset) { - this.ruleset = ruleset; + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; } - public CampaignCollectionEditedNotification collection(CollectionWithoutPayload collection) { + public CampaignCollectionEditedNotification data(List data) { - this.collection = collection; + this.data = data; + return this; + } + + public CampaignCollectionEditedNotification addDataItem(CampaignCollectionEditedNotificationItem dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); return this; } /** - * Get collection - * @return collection + * A list of campaign notification data. + * @return data **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of campaign notification data.") - public CollectionWithoutPayload getCollection() { - return collection; + public List getData() { + return data; } - public void setCollection(CollectionWithoutPayload collection) { - this.collection = collection; + public void setData(List data) { + this.data = data; } @@ -122,14 +130,14 @@ public boolean equals(java.lang.Object o) { return false; } CampaignCollectionEditedNotification campaignCollectionEditedNotification = (CampaignCollectionEditedNotification) o; - return Objects.equals(this.campaign, campaignCollectionEditedNotification.campaign) && - Objects.equals(this.ruleset, campaignCollectionEditedNotification.ruleset) && - Objects.equals(this.collection, campaignCollectionEditedNotification.collection); + return Objects.equals(this.notificationType, campaignCollectionEditedNotification.notificationType) && + Objects.equals(this.totalResultSize, campaignCollectionEditedNotification.totalResultSize) && + Objects.equals(this.data, campaignCollectionEditedNotification.data); } @Override public int hashCode() { - return Objects.hash(campaign, ruleset, collection); + return Objects.hash(notificationType, totalResultSize, data); } @@ -137,9 +145,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignCollectionEditedNotification {\n"); - sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); - sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n"); - sb.append(" collection: ").append(toIndentedString(collection)).append("\n"); + sb.append(" notificationType: ").append(toIndentedString(notificationType)).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/CampaignCollectionEditedNotificationItem.java b/src/main/java/one/talon/model/CampaignCollectionEditedNotificationItem.java new file mode 100644 index 00000000..f55a524a --- /dev/null +++ b/src/main/java/one/talon/model/CampaignCollectionEditedNotificationItem.java @@ -0,0 +1,187 @@ +/* + * 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.Campaign; +import one.talon.model.CollectionWithoutPayload; +import one.talon.model.Ruleset; + +/** + * A notification regarding a collection that was edited. + */ +@ApiModel(description = "A notification regarding a collection that was edited.") + +public class CampaignCollectionEditedNotificationItem { + public static final String SERIALIZED_NAME_EVENT = "Event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private String event; + + public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN) + private Campaign campaign; + + public static final String SERIALIZED_NAME_RULESET = "ruleset"; + @SerializedName(SERIALIZED_NAME_RULESET) + private Ruleset ruleset; + + public static final String SERIALIZED_NAME_COLLECTION = "collection"; + @SerializedName(SERIALIZED_NAME_COLLECTION) + private CollectionWithoutPayload collection; + + + public CampaignCollectionEditedNotificationItem event(String event) { + + this.event = event; + return this; + } + + /** + * The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + * @return event + **/ + @ApiModelProperty(example = "campaign_state_changed", required = true, value = "The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] ") + + public String getEvent() { + return event; + } + + + public void setEvent(String event) { + this.event = event; + } + + + public CampaignCollectionEditedNotificationItem campaign(Campaign campaign) { + + this.campaign = campaign; + return this; + } + + /** + * Get campaign + * @return campaign + **/ + @ApiModelProperty(required = true, value = "") + + public Campaign getCampaign() { + return campaign; + } + + + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + + public CampaignCollectionEditedNotificationItem ruleset(Ruleset ruleset) { + + this.ruleset = ruleset; + return this; + } + + /** + * Get ruleset + * @return ruleset + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Ruleset getRuleset() { + return ruleset; + } + + + public void setRuleset(Ruleset ruleset) { + this.ruleset = ruleset; + } + + + public CampaignCollectionEditedNotificationItem collection(CollectionWithoutPayload collection) { + + this.collection = collection; + return this; + } + + /** + * Get collection + * @return collection + **/ + @ApiModelProperty(required = true, value = "") + + public CollectionWithoutPayload getCollection() { + return collection; + } + + + public void setCollection(CollectionWithoutPayload collection) { + this.collection = collection; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignCollectionEditedNotificationItem campaignCollectionEditedNotificationItem = (CampaignCollectionEditedNotificationItem) o; + return Objects.equals(this.event, campaignCollectionEditedNotificationItem.event) && + Objects.equals(this.campaign, campaignCollectionEditedNotificationItem.campaign) && + Objects.equals(this.ruleset, campaignCollectionEditedNotificationItem.ruleset) && + Objects.equals(this.collection, campaignCollectionEditedNotificationItem.collection); + } + + @Override + public int hashCode() { + return Objects.hash(event, campaign, ruleset, collection); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignCollectionEditedNotificationItem {\n"); + 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(" collection: ").append(toIndentedString(collection)).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/CampaignCreatedNotification.java b/src/main/java/one/talon/model/CampaignCreatedNotification.java index a48568ca..0e0d7fb9 100644 --- a/src/main/java/one/talon/model/CampaignCreatedNotification.java +++ b/src/main/java/one/talon/model/CampaignCreatedNotification.java @@ -23,93 +23,101 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.CampaignEvaluationPosition; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignCreatedNotificationItem; /** - * A notification regarding a campaign that was created. + * CampaignCreatedNotification */ -@ApiModel(description = "A notification regarding a campaign that was created.") public class CampaignCreatedNotification { - public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private Campaign campaign; + public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) + private String notificationType; - public static final String SERIALIZED_NAME_RULESET = "ruleset"; - @SerializedName(SERIALIZED_NAME_RULESET) - private Ruleset ruleset; + 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_EVALUATION_POSITION = "evaluationPosition"; - @SerializedName(SERIALIZED_NAME_EVALUATION_POSITION) - private CampaignEvaluationPosition evaluationPosition; + public static final String SERIALIZED_NAME_DATA = "Data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; - public CampaignCreatedNotification campaign(Campaign campaign) { + public CampaignCreatedNotification notificationType(String notificationType) { - this.campaign = campaign; + this.notificationType = notificationType; return this; } /** - * Get campaign - * @return campaign + * The type of the notification + * @return notificationType **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "CampaignNotification", value = "The type of the notification") - public Campaign getCampaign() { - return campaign; + public String getNotificationType() { + return notificationType; } - public void setCampaign(Campaign campaign) { - this.campaign = campaign; + public void setNotificationType(String notificationType) { + this.notificationType = notificationType; } - public CampaignCreatedNotification ruleset(Ruleset ruleset) { + public CampaignCreatedNotification totalResultSize(Long totalResultSize) { - this.ruleset = ruleset; + this.totalResultSize = totalResultSize; return this; } /** - * Get ruleset - * @return ruleset + * The total size of the result set. + * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "The total size of the result set.") - public Ruleset getRuleset() { - return ruleset; + public Long getTotalResultSize() { + return totalResultSize; } - public void setRuleset(Ruleset ruleset) { - this.ruleset = ruleset; + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; } - public CampaignCreatedNotification evaluationPosition(CampaignEvaluationPosition evaluationPosition) { + public CampaignCreatedNotification data(List data) { - this.evaluationPosition = evaluationPosition; + this.data = data; + return this; + } + + public CampaignCreatedNotification addDataItem(CampaignCreatedNotificationItem dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); return this; } /** - * Get evaluationPosition - * @return evaluationPosition + * A list of campaign notification data. + * @return data **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of campaign notification data.") - public CampaignEvaluationPosition getEvaluationPosition() { - return evaluationPosition; + public List getData() { + return data; } - public void setEvaluationPosition(CampaignEvaluationPosition evaluationPosition) { - this.evaluationPosition = evaluationPosition; + public void setData(List data) { + this.data = data; } @@ -122,14 +130,14 @@ public boolean equals(java.lang.Object o) { return false; } CampaignCreatedNotification campaignCreatedNotification = (CampaignCreatedNotification) o; - return Objects.equals(this.campaign, campaignCreatedNotification.campaign) && - Objects.equals(this.ruleset, campaignCreatedNotification.ruleset) && - Objects.equals(this.evaluationPosition, campaignCreatedNotification.evaluationPosition); + return Objects.equals(this.notificationType, campaignCreatedNotification.notificationType) && + Objects.equals(this.totalResultSize, campaignCreatedNotification.totalResultSize) && + Objects.equals(this.data, campaignCreatedNotification.data); } @Override public int hashCode() { - return Objects.hash(campaign, ruleset, evaluationPosition); + return Objects.hash(notificationType, totalResultSize, data); } @@ -137,9 +145,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignCreatedNotification {\n"); - sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); - sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n"); - sb.append(" evaluationPosition: ").append(toIndentedString(evaluationPosition)).append("\n"); + sb.append(" notificationType: ").append(toIndentedString(notificationType)).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/CampaignCreatedNotificationItem.java b/src/main/java/one/talon/model/CampaignCreatedNotificationItem.java new file mode 100644 index 00000000..62942a68 --- /dev/null +++ b/src/main/java/one/talon/model/CampaignCreatedNotificationItem.java @@ -0,0 +1,187 @@ +/* + * 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.Campaign; +import one.talon.model.CampaignEvaluationPosition; +import one.talon.model.Ruleset; + +/** + * A notification regarding a campaign that was created. + */ +@ApiModel(description = "A notification regarding a campaign that was created.") + +public class CampaignCreatedNotificationItem { + public static final String SERIALIZED_NAME_EVENT = "Event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private String event; + + public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN) + private Campaign campaign; + + public static final String SERIALIZED_NAME_RULESET = "ruleset"; + @SerializedName(SERIALIZED_NAME_RULESET) + private Ruleset ruleset; + + public static final String SERIALIZED_NAME_EVALUATION_POSITION = "evaluationPosition"; + @SerializedName(SERIALIZED_NAME_EVALUATION_POSITION) + private CampaignEvaluationPosition evaluationPosition; + + + public CampaignCreatedNotificationItem event(String event) { + + this.event = event; + return this; + } + + /** + * The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + * @return event + **/ + @ApiModelProperty(example = "campaign_state_changed", required = true, value = "The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] ") + + public String getEvent() { + return event; + } + + + public void setEvent(String event) { + this.event = event; + } + + + public CampaignCreatedNotificationItem campaign(Campaign campaign) { + + this.campaign = campaign; + return this; + } + + /** + * Get campaign + * @return campaign + **/ + @ApiModelProperty(required = true, value = "") + + public Campaign getCampaign() { + return campaign; + } + + + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + + public CampaignCreatedNotificationItem ruleset(Ruleset ruleset) { + + this.ruleset = ruleset; + return this; + } + + /** + * Get ruleset + * @return ruleset + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Ruleset getRuleset() { + return ruleset; + } + + + public void setRuleset(Ruleset ruleset) { + this.ruleset = ruleset; + } + + + public CampaignCreatedNotificationItem evaluationPosition(CampaignEvaluationPosition evaluationPosition) { + + this.evaluationPosition = evaluationPosition; + return this; + } + + /** + * Get evaluationPosition + * @return evaluationPosition + **/ + @ApiModelProperty(required = true, value = "") + + public CampaignEvaluationPosition getEvaluationPosition() { + return evaluationPosition; + } + + + public void setEvaluationPosition(CampaignEvaluationPosition evaluationPosition) { + this.evaluationPosition = evaluationPosition; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignCreatedNotificationItem campaignCreatedNotificationItem = (CampaignCreatedNotificationItem) o; + return Objects.equals(this.event, campaignCreatedNotificationItem.event) && + Objects.equals(this.campaign, campaignCreatedNotificationItem.campaign) && + Objects.equals(this.ruleset, campaignCreatedNotificationItem.ruleset) && + Objects.equals(this.evaluationPosition, campaignCreatedNotificationItem.evaluationPosition); + } + + @Override + public int hashCode() { + return Objects.hash(event, campaign, ruleset, evaluationPosition); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignCreatedNotificationItem {\n"); + 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(" evaluationPosition: ").append(toIndentedString(evaluationPosition)).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/CampaignDeletedNotification.java b/src/main/java/one/talon/model/CampaignDeletedNotification.java index 0d0c75b3..07e73c01 100644 --- a/src/main/java/one/talon/model/CampaignDeletedNotification.java +++ b/src/main/java/one/talon/model/CampaignDeletedNotification.java @@ -23,65 +23,101 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import org.threeten.bp.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignDeletedNotificationItem; /** - * A notification regarding a campaign that was deleted. + * CampaignDeletedNotification */ -@ApiModel(description = "A notification regarding a campaign that was deleted.") public class CampaignDeletedNotification { - public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private Campaign campaign; + public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) + private String notificationType; - public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; - @SerializedName(SERIALIZED_NAME_DELETED_AT) - private OffsetDateTime deletedAt; + 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; - public CampaignDeletedNotification campaign(Campaign campaign) { + + public CampaignDeletedNotification notificationType(String notificationType) { + + this.notificationType = notificationType; + return this; + } + + /** + * The type of the notification + * @return notificationType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "CampaignNotification", value = "The type of the notification") + + public String getNotificationType() { + return notificationType; + } + + + public void setNotificationType(String notificationType) { + this.notificationType = notificationType; + } + + + public CampaignDeletedNotification totalResultSize(Long totalResultSize) { - this.campaign = campaign; + this.totalResultSize = totalResultSize; return this; } /** - * Get campaign - * @return campaign + * The total size of the result set. + * @return totalResultSize **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "The total size of the result set.") - public Campaign getCampaign() { - return campaign; + public Long getTotalResultSize() { + return totalResultSize; } - public void setCampaign(Campaign campaign) { - this.campaign = campaign; + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; } - public CampaignDeletedNotification deletedAt(OffsetDateTime deletedAt) { + public CampaignDeletedNotification data(List data) { - this.deletedAt = deletedAt; + this.data = data; + return this; + } + + public CampaignDeletedNotification addDataItem(CampaignDeletedNotificationItem dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); return this; } /** - * Time when the campaign was deleted. - * @return deletedAt + * A list of campaign notification data. + * @return data **/ - @ApiModelProperty(example = "2022-11-10T23:00Z", required = true, value = "Time when the campaign was deleted.") + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of campaign notification data.") - public OffsetDateTime getDeletedAt() { - return deletedAt; + public List getData() { + return data; } - public void setDeletedAt(OffsetDateTime deletedAt) { - this.deletedAt = deletedAt; + public void setData(List data) { + this.data = data; } @@ -94,13 +130,14 @@ public boolean equals(java.lang.Object o) { return false; } CampaignDeletedNotification campaignDeletedNotification = (CampaignDeletedNotification) o; - return Objects.equals(this.campaign, campaignDeletedNotification.campaign) && - Objects.equals(this.deletedAt, campaignDeletedNotification.deletedAt); + return Objects.equals(this.notificationType, campaignDeletedNotification.notificationType) && + Objects.equals(this.totalResultSize, campaignDeletedNotification.totalResultSize) && + Objects.equals(this.data, campaignDeletedNotification.data); } @Override public int hashCode() { - return Objects.hash(campaign, deletedAt); + return Objects.hash(notificationType, totalResultSize, data); } @@ -108,8 +145,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignDeletedNotification {\n"); - sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); - sb.append(" deletedAt: ").append(toIndentedString(deletedAt)).append("\n"); + sb.append(" notificationType: ").append(toIndentedString(notificationType)).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/CampaignDeletedNotificationItem.java b/src/main/java/one/talon/model/CampaignDeletedNotificationItem.java new file mode 100644 index 00000000..d39858f4 --- /dev/null +++ b/src/main/java/one/talon/model/CampaignDeletedNotificationItem.java @@ -0,0 +1,157 @@ +/* + * 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.Campaign; +import org.threeten.bp.OffsetDateTime; + +/** + * A notification regarding a campaign that was deleted. + */ +@ApiModel(description = "A notification regarding a campaign that was deleted.") + +public class CampaignDeletedNotificationItem { + public static final String SERIALIZED_NAME_EVENT = "Event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private String event; + + public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN) + private Campaign campaign; + + public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; + @SerializedName(SERIALIZED_NAME_DELETED_AT) + private OffsetDateTime deletedAt; + + + public CampaignDeletedNotificationItem event(String event) { + + this.event = event; + return this; + } + + /** + * The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + * @return event + **/ + @ApiModelProperty(example = "campaign_state_changed", required = true, value = "The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] ") + + public String getEvent() { + return event; + } + + + public void setEvent(String event) { + this.event = event; + } + + + public CampaignDeletedNotificationItem campaign(Campaign campaign) { + + this.campaign = campaign; + return this; + } + + /** + * Get campaign + * @return campaign + **/ + @ApiModelProperty(required = true, value = "") + + public Campaign getCampaign() { + return campaign; + } + + + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + + public CampaignDeletedNotificationItem deletedAt(OffsetDateTime deletedAt) { + + this.deletedAt = deletedAt; + return this; + } + + /** + * Time when the campaign was deleted. + * @return deletedAt + **/ + @ApiModelProperty(example = "2022-11-10T23:00Z", required = true, value = "Time when the campaign was deleted.") + + public OffsetDateTime getDeletedAt() { + return deletedAt; + } + + + public void setDeletedAt(OffsetDateTime deletedAt) { + this.deletedAt = deletedAt; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignDeletedNotificationItem campaignDeletedNotificationItem = (CampaignDeletedNotificationItem) o; + return Objects.equals(this.event, campaignDeletedNotificationItem.event) && + Objects.equals(this.campaign, campaignDeletedNotificationItem.campaign) && + Objects.equals(this.deletedAt, campaignDeletedNotificationItem.deletedAt); + } + + @Override + public int hashCode() { + return Objects.hash(event, campaign, deletedAt); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignDeletedNotificationItem {\n"); + sb.append(" event: ").append(toIndentedString(event)).append("\n"); + sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); + sb.append(" deletedAt: ").append(toIndentedString(deletedAt)).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/CampaignEditedNotification.java b/src/main/java/one/talon/model/CampaignEditedNotification.java index fcf51891..f9d9900b 100644 --- a/src/main/java/one/talon/model/CampaignEditedNotification.java +++ b/src/main/java/one/talon/model/CampaignEditedNotification.java @@ -23,92 +23,101 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignEditedNotificationItem; /** - * A notification regarding a campaign which was edited. + * CampaignEditedNotification */ -@ApiModel(description = "A notification regarding a campaign which was edited.") public class CampaignEditedNotification { - public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private Campaign campaign; + public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) + private String notificationType; - public static final String SERIALIZED_NAME_OLD_CAMPAIGN = "oldCampaign"; - @SerializedName(SERIALIZED_NAME_OLD_CAMPAIGN) - private Campaign oldCampaign; + 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_RULESET = "ruleset"; - @SerializedName(SERIALIZED_NAME_RULESET) - private Ruleset ruleset; + public static final String SERIALIZED_NAME_DATA = "Data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; - public CampaignEditedNotification campaign(Campaign campaign) { + public CampaignEditedNotification notificationType(String notificationType) { - this.campaign = campaign; + this.notificationType = notificationType; return this; } /** - * Get campaign - * @return campaign + * The type of the notification + * @return notificationType **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "CampaignNotification", value = "The type of the notification") - public Campaign getCampaign() { - return campaign; + public String getNotificationType() { + return notificationType; } - public void setCampaign(Campaign campaign) { - this.campaign = campaign; + public void setNotificationType(String notificationType) { + this.notificationType = notificationType; } - public CampaignEditedNotification oldCampaign(Campaign oldCampaign) { + public CampaignEditedNotification totalResultSize(Long totalResultSize) { - this.oldCampaign = oldCampaign; + this.totalResultSize = totalResultSize; return this; } /** - * Get oldCampaign - * @return oldCampaign + * The total size of the result set. + * @return totalResultSize **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "The total size of the result set.") - public Campaign getOldCampaign() { - return oldCampaign; + public Long getTotalResultSize() { + return totalResultSize; } - public void setOldCampaign(Campaign oldCampaign) { - this.oldCampaign = oldCampaign; + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; } - public CampaignEditedNotification ruleset(Ruleset ruleset) { + public CampaignEditedNotification data(List data) { - this.ruleset = ruleset; + this.data = data; + return this; + } + + public CampaignEditedNotification addDataItem(CampaignEditedNotificationItem dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); return this; } /** - * Get ruleset - * @return ruleset + * A list of campaign notification data. + * @return data **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "A list of campaign notification data.") - public Ruleset getRuleset() { - return ruleset; + public List getData() { + return data; } - public void setRuleset(Ruleset ruleset) { - this.ruleset = ruleset; + public void setData(List data) { + this.data = data; } @@ -121,14 +130,14 @@ public boolean equals(java.lang.Object o) { return false; } CampaignEditedNotification campaignEditedNotification = (CampaignEditedNotification) o; - return Objects.equals(this.campaign, campaignEditedNotification.campaign) && - Objects.equals(this.oldCampaign, campaignEditedNotification.oldCampaign) && - Objects.equals(this.ruleset, campaignEditedNotification.ruleset); + return Objects.equals(this.notificationType, campaignEditedNotification.notificationType) && + Objects.equals(this.totalResultSize, campaignEditedNotification.totalResultSize) && + Objects.equals(this.data, campaignEditedNotification.data); } @Override public int hashCode() { - return Objects.hash(campaign, oldCampaign, ruleset); + return Objects.hash(notificationType, totalResultSize, data); } @@ -136,9 +145,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignEditedNotification {\n"); - 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(" notificationType: ").append(toIndentedString(notificationType)).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/CampaignEditedNotificationItem.java b/src/main/java/one/talon/model/CampaignEditedNotificationItem.java new file mode 100644 index 00000000..da8cc6ed --- /dev/null +++ b/src/main/java/one/talon/model/CampaignEditedNotificationItem.java @@ -0,0 +1,186 @@ +/* + * 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.Campaign; +import one.talon.model.Ruleset; + +/** + * A notification regarding a campaign which was edited. + */ +@ApiModel(description = "A notification regarding a campaign which was edited.") + +public class CampaignEditedNotificationItem { + public static final String SERIALIZED_NAME_EVENT = "Event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private String event; + + public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN) + private Campaign campaign; + + public static final String SERIALIZED_NAME_OLD_CAMPAIGN = "oldCampaign"; + @SerializedName(SERIALIZED_NAME_OLD_CAMPAIGN) + private Campaign oldCampaign; + + public static final String SERIALIZED_NAME_RULESET = "ruleset"; + @SerializedName(SERIALIZED_NAME_RULESET) + private Ruleset ruleset; + + + public CampaignEditedNotificationItem event(String event) { + + this.event = event; + return this; + } + + /** + * The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + * @return event + **/ + @ApiModelProperty(example = "campaign_state_changed", required = true, value = "The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] ") + + public String getEvent() { + return event; + } + + + public void setEvent(String event) { + this.event = event; + } + + + public CampaignEditedNotificationItem campaign(Campaign campaign) { + + this.campaign = campaign; + return this; + } + + /** + * Get campaign + * @return campaign + **/ + @ApiModelProperty(required = true, value = "") + + public Campaign getCampaign() { + return campaign; + } + + + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + + public CampaignEditedNotificationItem oldCampaign(Campaign oldCampaign) { + + this.oldCampaign = oldCampaign; + return this; + } + + /** + * Get oldCampaign + * @return oldCampaign + **/ + @ApiModelProperty(required = true, value = "") + + public Campaign getOldCampaign() { + return oldCampaign; + } + + + public void setOldCampaign(Campaign oldCampaign) { + this.oldCampaign = oldCampaign; + } + + + public CampaignEditedNotificationItem ruleset(Ruleset ruleset) { + + this.ruleset = ruleset; + return this; + } + + /** + * Get ruleset + * @return ruleset + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Ruleset getRuleset() { + return ruleset; + } + + + public void setRuleset(Ruleset ruleset) { + this.ruleset = ruleset; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignEditedNotificationItem campaignEditedNotificationItem = (CampaignEditedNotificationItem) 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); + } + + @Override + public int hashCode() { + return Objects.hash(event, campaign, oldCampaign, ruleset); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignEditedNotificationItem {\n"); + sb.append(" event: ").append(toIndentedString(event)).append("\n"); + 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("}"); + 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/CampaignNotificationBase.java b/src/main/java/one/talon/model/CampaignNotificationBase.java new file mode 100644 index 00000000..57c23406 --- /dev/null +++ b/src/main/java/one/talon/model/CampaignNotificationBase.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; + +/** + * CampaignNotificationBase + */ + +public class CampaignNotificationBase { + public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) + private String notificationType; + + public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "TotalResultSize"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) + private Long totalResultSize; + + + public CampaignNotificationBase notificationType(String notificationType) { + + this.notificationType = notificationType; + return this; + } + + /** + * The type of the notification + * @return notificationType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "CampaignNotification", value = "The type of the notification") + + public String getNotificationType() { + return notificationType; + } + + + public void setNotificationType(String notificationType) { + this.notificationType = notificationType; + } + + + public CampaignNotificationBase totalResultSize(Long totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * The total size of the result set. + * @return totalResultSize + **/ + @ApiModelProperty(required = true, value = "The total size of the result set.") + + public Long getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignNotificationBase campaignNotificationBase = (CampaignNotificationBase) o; + return Objects.equals(this.notificationType, campaignNotificationBase.notificationType) && + Objects.equals(this.totalResultSize, campaignNotificationBase.totalResultSize); + } + + @Override + public int hashCode() { + return Objects.hash(notificationType, totalResultSize); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignNotificationBase {\n"); + sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); + sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).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/CampaignNotificationGeneric.java b/src/main/java/one/talon/model/CampaignNotificationGeneric.java new file mode 100644 index 00000000..4c1490b7 --- /dev/null +++ b/src/main/java/one/talon/model/CampaignNotificationGeneric.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * CampaignNotificationGeneric + */ + +public class CampaignNotificationGeneric { + public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) + private String notificationType; + + 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 CampaignNotificationGeneric notificationType(String notificationType) { + + this.notificationType = notificationType; + return this; + } + + /** + * The type of the notification + * @return notificationType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "CampaignNotification", value = "The type of the notification") + + public String getNotificationType() { + return notificationType; + } + + + public void setNotificationType(String notificationType) { + this.notificationType = notificationType; + } + + + public CampaignNotificationGeneric totalResultSize(Long totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * The total size of the result set. + * @return totalResultSize + **/ + @ApiModelProperty(required = true, value = "The total size of the result set.") + + public Long getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; + } + + + public CampaignNotificationGeneric data(List data) { + + this.data = data; + return this; + } + + public CampaignNotificationGeneric addDataItem(Object dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * A list of campaign notification data. + * @return data + **/ + @ApiModelProperty(required = true, value = "A list of campaign notification data.") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignNotificationGeneric campaignNotificationGeneric = (CampaignNotificationGeneric) o; + return Objects.equals(this.notificationType, campaignNotificationGeneric.notificationType) && + Objects.equals(this.totalResultSize, campaignNotificationGeneric.totalResultSize) && + Objects.equals(this.data, campaignNotificationGeneric.data); + } + + @Override + public int hashCode() { + return Objects.hash(notificationType, totalResultSize, data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignNotificationGeneric {\n"); + sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); + sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/CampaignNotificationItemBase.java b/src/main/java/one/talon/model/CampaignNotificationItemBase.java new file mode 100644 index 00000000..75a428c6 --- /dev/null +++ b/src/main/java/one/talon/model/CampaignNotificationItemBase.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; + +/** + * CampaignNotificationItemBase + */ + +public class CampaignNotificationItemBase { + public static final String SERIALIZED_NAME_EVENT = "Event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private String event; + + + public CampaignNotificationItemBase event(String event) { + + this.event = event; + return this; + } + + /** + * The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + * @return event + **/ + @ApiModelProperty(example = "campaign_state_changed", required = true, value = "The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] ") + + public String getEvent() { + return event; + } + + + public void setEvent(String 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; + } + CampaignNotificationItemBase campaignNotificationItemBase = (CampaignNotificationItemBase) o; + return Objects.equals(this.event, campaignNotificationItemBase.event); + } + + @Override + public int hashCode() { + return Objects.hash(event); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignNotificationItemBase {\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/CampaignRulesetChangedNotification.java b/src/main/java/one/talon/model/CampaignRulesetChangedNotification.java index c512a8f7..baa1a7e2 100644 --- a/src/main/java/one/talon/model/CampaignRulesetChangedNotification.java +++ b/src/main/java/one/talon/model/CampaignRulesetChangedNotification.java @@ -23,93 +23,101 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignRulesetChangedNotificationItem; /** - * A notification regarding a campaign whose ruleset was changed. + * CampaignRulesetChangedNotification */ -@ApiModel(description = "A notification regarding a campaign whose ruleset was changed.") public class CampaignRulesetChangedNotification { - public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private Campaign campaign; + public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) + private String notificationType; - public static final String SERIALIZED_NAME_OLD_RULESET = "oldRuleset"; - @SerializedName(SERIALIZED_NAME_OLD_RULESET) - private Ruleset oldRuleset; + 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_RULESET = "ruleset"; - @SerializedName(SERIALIZED_NAME_RULESET) - private Ruleset ruleset; + public static final String SERIALIZED_NAME_DATA = "Data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; - public CampaignRulesetChangedNotification campaign(Campaign campaign) { + public CampaignRulesetChangedNotification notificationType(String notificationType) { - this.campaign = campaign; + this.notificationType = notificationType; return this; } /** - * Get campaign - * @return campaign + * The type of the notification + * @return notificationType **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "CampaignNotification", value = "The type of the notification") - public Campaign getCampaign() { - return campaign; + public String getNotificationType() { + return notificationType; } - public void setCampaign(Campaign campaign) { - this.campaign = campaign; + public void setNotificationType(String notificationType) { + this.notificationType = notificationType; } - public CampaignRulesetChangedNotification oldRuleset(Ruleset oldRuleset) { + public CampaignRulesetChangedNotification totalResultSize(Long totalResultSize) { - this.oldRuleset = oldRuleset; + this.totalResultSize = totalResultSize; return this; } /** - * Get oldRuleset - * @return oldRuleset + * The total size of the result set. + * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "The total size of the result set.") - public Ruleset getOldRuleset() { - return oldRuleset; + public Long getTotalResultSize() { + return totalResultSize; } - public void setOldRuleset(Ruleset oldRuleset) { - this.oldRuleset = oldRuleset; + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; } - public CampaignRulesetChangedNotification ruleset(Ruleset ruleset) { + public CampaignRulesetChangedNotification data(List data) { - this.ruleset = ruleset; + this.data = data; + return this; + } + + public CampaignRulesetChangedNotification addDataItem(CampaignRulesetChangedNotificationItem dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); return this; } /** - * Get ruleset - * @return ruleset + * A list of campaign notification data. + * @return data **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "A list of campaign notification data.") - public Ruleset getRuleset() { - return ruleset; + public List getData() { + return data; } - public void setRuleset(Ruleset ruleset) { - this.ruleset = ruleset; + public void setData(List data) { + this.data = data; } @@ -122,14 +130,14 @@ public boolean equals(java.lang.Object o) { return false; } CampaignRulesetChangedNotification campaignRulesetChangedNotification = (CampaignRulesetChangedNotification) o; - return Objects.equals(this.campaign, campaignRulesetChangedNotification.campaign) && - Objects.equals(this.oldRuleset, campaignRulesetChangedNotification.oldRuleset) && - Objects.equals(this.ruleset, campaignRulesetChangedNotification.ruleset); + return Objects.equals(this.notificationType, campaignRulesetChangedNotification.notificationType) && + Objects.equals(this.totalResultSize, campaignRulesetChangedNotification.totalResultSize) && + Objects.equals(this.data, campaignRulesetChangedNotification.data); } @Override public int hashCode() { - return Objects.hash(campaign, oldRuleset, ruleset); + return Objects.hash(notificationType, totalResultSize, data); } @@ -137,9 +145,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignRulesetChangedNotification {\n"); - sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); - sb.append(" oldRuleset: ").append(toIndentedString(oldRuleset)).append("\n"); - sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n"); + sb.append(" notificationType: ").append(toIndentedString(notificationType)).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/CampaignRulesetChangedNotificationItem.java b/src/main/java/one/talon/model/CampaignRulesetChangedNotificationItem.java new file mode 100644 index 00000000..0a9ba4a2 --- /dev/null +++ b/src/main/java/one/talon/model/CampaignRulesetChangedNotificationItem.java @@ -0,0 +1,187 @@ +/* + * 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.Campaign; +import one.talon.model.Ruleset; + +/** + * A notification regarding a campaign whose ruleset was changed. + */ +@ApiModel(description = "A notification regarding a campaign whose ruleset was changed.") + +public class CampaignRulesetChangedNotificationItem { + public static final String SERIALIZED_NAME_EVENT = "Event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private String event; + + public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN) + private Campaign campaign; + + public static final String SERIALIZED_NAME_OLD_RULESET = "oldRuleset"; + @SerializedName(SERIALIZED_NAME_OLD_RULESET) + private Ruleset oldRuleset; + + public static final String SERIALIZED_NAME_RULESET = "ruleset"; + @SerializedName(SERIALIZED_NAME_RULESET) + private Ruleset ruleset; + + + public CampaignRulesetChangedNotificationItem event(String event) { + + this.event = event; + return this; + } + + /** + * The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + * @return event + **/ + @ApiModelProperty(example = "campaign_state_changed", required = true, value = "The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] ") + + public String getEvent() { + return event; + } + + + public void setEvent(String event) { + this.event = event; + } + + + public CampaignRulesetChangedNotificationItem campaign(Campaign campaign) { + + this.campaign = campaign; + return this; + } + + /** + * Get campaign + * @return campaign + **/ + @ApiModelProperty(required = true, value = "") + + public Campaign getCampaign() { + return campaign; + } + + + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + + public CampaignRulesetChangedNotificationItem oldRuleset(Ruleset oldRuleset) { + + this.oldRuleset = oldRuleset; + return this; + } + + /** + * Get oldRuleset + * @return oldRuleset + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Ruleset getOldRuleset() { + return oldRuleset; + } + + + public void setOldRuleset(Ruleset oldRuleset) { + this.oldRuleset = oldRuleset; + } + + + public CampaignRulesetChangedNotificationItem ruleset(Ruleset ruleset) { + + this.ruleset = ruleset; + return this; + } + + /** + * Get ruleset + * @return ruleset + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Ruleset getRuleset() { + return ruleset; + } + + + public void setRuleset(Ruleset ruleset) { + this.ruleset = ruleset; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignRulesetChangedNotificationItem campaignRulesetChangedNotificationItem = (CampaignRulesetChangedNotificationItem) 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); + } + + @Override + public int hashCode() { + return Objects.hash(event, campaign, oldRuleset, ruleset); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignRulesetChangedNotificationItem {\n"); + 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(" ruleset: ").append(toIndentedString(ruleset)).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/CampaignStateChangedNotification.java b/src/main/java/one/talon/model/CampaignStateChangedNotification.java index 274a489e..6ff3bdbe 100644 --- a/src/main/java/one/talon/model/CampaignStateChangedNotification.java +++ b/src/main/java/one/talon/model/CampaignStateChangedNotification.java @@ -23,118 +23,101 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignStateChangedNotificationItem; /** - * A notification regarding a campaign whose state changed. + * CampaignStateChangedNotification */ -@ApiModel(description = "A notification regarding a campaign whose state changed.") public class CampaignStateChangedNotification { - public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private Campaign campaign; + public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) + private String notificationType; - public static final String SERIALIZED_NAME_OLD_STATE = "oldState"; - @SerializedName(SERIALIZED_NAME_OLD_STATE) - private String oldState; + 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_NEW_STATE = "newState"; - @SerializedName(SERIALIZED_NAME_NEW_STATE) - private String newState; + public static final String SERIALIZED_NAME_DATA = "Data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; - public static final String SERIALIZED_NAME_RULESET = "ruleset"; - @SerializedName(SERIALIZED_NAME_RULESET) - private Ruleset ruleset; - - public CampaignStateChangedNotification campaign(Campaign campaign) { + public CampaignStateChangedNotification notificationType(String notificationType) { - this.campaign = campaign; + this.notificationType = notificationType; return this; } /** - * Get campaign - * @return campaign + * The type of the notification + * @return notificationType **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "CampaignNotification", value = "The type of the notification") - public Campaign getCampaign() { - return campaign; + public String getNotificationType() { + return notificationType; } - public void setCampaign(Campaign campaign) { - this.campaign = campaign; + public void setNotificationType(String notificationType) { + this.notificationType = notificationType; } - public CampaignStateChangedNotification oldState(String oldState) { + public CampaignStateChangedNotification totalResultSize(Long totalResultSize) { - this.oldState = oldState; + this.totalResultSize = totalResultSize; return this; } /** - * The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] - * @return oldState + * The total size of the result set. + * @return totalResultSize **/ - @ApiModelProperty(example = "disabled", required = true, value = "The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] ") + @ApiModelProperty(required = true, value = "The total size of the result set.") - public String getOldState() { - return oldState; + public Long getTotalResultSize() { + return totalResultSize; } - public void setOldState(String oldState) { - this.oldState = oldState; + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; } - public CampaignStateChangedNotification newState(String newState) { + public CampaignStateChangedNotification data(List data) { - this.newState = newState; + this.data = data; return this; } - /** - * The campaign's new state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] - * @return newState - **/ - @ApiModelProperty(example = "running", required = true, value = "The campaign's new state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] ") - - public String getNewState() { - return newState; - } - - - public void setNewState(String newState) { - this.newState = newState; - } - - - public CampaignStateChangedNotification ruleset(Ruleset ruleset) { - - this.ruleset = ruleset; + public CampaignStateChangedNotification addDataItem(CampaignStateChangedNotificationItem dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); return this; } /** - * Get ruleset - * @return ruleset + * A list of campaign notification data. + * @return data **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "A list of campaign notification data.") - public Ruleset getRuleset() { - return ruleset; + public List getData() { + return data; } - public void setRuleset(Ruleset ruleset) { - this.ruleset = ruleset; + public void setData(List data) { + this.data = data; } @@ -147,15 +130,14 @@ public boolean equals(java.lang.Object o) { return false; } CampaignStateChangedNotification campaignStateChangedNotification = (CampaignStateChangedNotification) o; - return Objects.equals(this.campaign, campaignStateChangedNotification.campaign) && - Objects.equals(this.oldState, campaignStateChangedNotification.oldState) && - Objects.equals(this.newState, campaignStateChangedNotification.newState) && - Objects.equals(this.ruleset, campaignStateChangedNotification.ruleset); + return Objects.equals(this.notificationType, campaignStateChangedNotification.notificationType) && + Objects.equals(this.totalResultSize, campaignStateChangedNotification.totalResultSize) && + Objects.equals(this.data, campaignStateChangedNotification.data); } @Override public int hashCode() { - return Objects.hash(campaign, oldState, newState, ruleset); + return Objects.hash(notificationType, totalResultSize, data); } @@ -163,10 +145,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignStateChangedNotification {\n"); - sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); - 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(" notificationType: ").append(toIndentedString(notificationType)).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/CampaignStateChangedNotificationItem.java b/src/main/java/one/talon/model/CampaignStateChangedNotificationItem.java new file mode 100644 index 00000000..1314b239 --- /dev/null +++ b/src/main/java/one/talon/model/CampaignStateChangedNotificationItem.java @@ -0,0 +1,214 @@ +/* + * 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.Campaign; +import one.talon.model.Ruleset; + +/** + * A notification regarding a campaign whose state changed. + */ +@ApiModel(description = "A notification regarding a campaign whose state changed.") + +public class CampaignStateChangedNotificationItem { + public static final String SERIALIZED_NAME_EVENT = "Event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private String event; + + public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN) + private Campaign campaign; + + public static final String SERIALIZED_NAME_OLD_STATE = "oldState"; + @SerializedName(SERIALIZED_NAME_OLD_STATE) + private String oldState; + + public static final String SERIALIZED_NAME_NEW_STATE = "newState"; + @SerializedName(SERIALIZED_NAME_NEW_STATE) + private String newState; + + public static final String SERIALIZED_NAME_RULESET = "ruleset"; + @SerializedName(SERIALIZED_NAME_RULESET) + private Ruleset ruleset; + + + public CampaignStateChangedNotificationItem event(String event) { + + this.event = event; + return this; + } + + /** + * The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] + * @return event + **/ + @ApiModelProperty(example = "campaign_state_changed", required = true, value = "The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] ") + + public String getEvent() { + return event; + } + + + public void setEvent(String event) { + this.event = event; + } + + + public CampaignStateChangedNotificationItem campaign(Campaign campaign) { + + this.campaign = campaign; + return this; + } + + /** + * Get campaign + * @return campaign + **/ + @ApiModelProperty(required = true, value = "") + + public Campaign getCampaign() { + return campaign; + } + + + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + + public CampaignStateChangedNotificationItem oldState(String oldState) { + + this.oldState = oldState; + return this; + } + + /** + * The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] + * @return oldState + **/ + @ApiModelProperty(example = "disabled", required = true, value = "The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] ") + + public String getOldState() { + return oldState; + } + + + public void setOldState(String oldState) { + this.oldState = oldState; + } + + + public CampaignStateChangedNotificationItem newState(String newState) { + + this.newState = newState; + return this; + } + + /** + * The campaign's new state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] + * @return newState + **/ + @ApiModelProperty(example = "running", required = true, value = "The campaign's new state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] ") + + public String getNewState() { + return newState; + } + + + public void setNewState(String newState) { + this.newState = newState; + } + + + public CampaignStateChangedNotificationItem ruleset(Ruleset ruleset) { + + this.ruleset = ruleset; + return this; + } + + /** + * Get ruleset + * @return ruleset + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Ruleset getRuleset() { + return ruleset; + } + + + public void setRuleset(Ruleset ruleset) { + this.ruleset = ruleset; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignStateChangedNotificationItem campaignStateChangedNotificationItem = (CampaignStateChangedNotificationItem) o; + return Objects.equals(this.event, campaignStateChangedNotificationItem.event) && + Objects.equals(this.campaign, campaignStateChangedNotificationItem.campaign) && + Objects.equals(this.oldState, campaignStateChangedNotificationItem.oldState) && + Objects.equals(this.newState, campaignStateChangedNotificationItem.newState) && + Objects.equals(this.ruleset, campaignStateChangedNotificationItem.ruleset); + } + + @Override + public int hashCode() { + return Objects.hash(event, campaign, oldState, newState, ruleset); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignStateChangedNotificationItem {\n"); + sb.append(" event: ").append(toIndentedString(event)).append("\n"); + sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); + 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("}"); + 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/StrikethroughChangedItem.java b/src/main/java/one/talon/model/StrikethroughChangedItem.java index 54f2277a..1a75a350 100644 --- a/src/main/java/one/talon/model/StrikethroughChangedItem.java +++ b/src/main/java/one/talon/model/StrikethroughChangedItem.java @@ -25,7 +25,10 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; +import one.talon.model.PriceDetail; import one.talon.model.StrikethroughEffect; import org.threeten.bp.OffsetDateTime; @@ -55,6 +58,10 @@ public class StrikethroughChangedItem { @SerializedName(SERIALIZED_NAME_PRICE) private BigDecimal price; + public static final String SERIALIZED_NAME_PRICES = "prices"; + @SerializedName(SERIALIZED_NAME_PRICES) + private Map prices = null; + public static final String SERIALIZED_NAME_EVALUATED_AT = "evaluatedAt"; @SerializedName(SERIALIZED_NAME_EVALUATED_AT) private OffsetDateTime evaluatedAt; @@ -175,6 +182,37 @@ public void setPrice(BigDecimal price) { } + public StrikethroughChangedItem prices(Map prices) { + + this.prices = prices; + return this; + } + + public StrikethroughChangedItem putPricesItem(String key, PriceDetail pricesItem) { + if (this.prices == null) { + this.prices = new HashMap(); + } + this.prices.put(key, pricesItem); + return this; + } + + /** + * A map of keys and values representing the price types and related price adjustment details for this cart item. The keys correspond to the `priceType` names. + * @return prices + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "{\"member\":{\"price\":90,\"adjustmentReferenceId\":\"68851723-e6fa-488f-ace9-112581e6c19b\",\"adjustmentEffectiveFrom\":\"2025-05-25T00:00:00Z\",\"adjustmentEffectiveUntil\":\"2025-05-30T00:00:00Z\"},\"base\":{\"price\":100}}", value = "A map of keys and values representing the price types and related price adjustment details for this cart item. The keys correspond to the `priceType` names. ") + + public Map getPrices() { + return prices; + } + + + public void setPrices(Map prices) { + this.prices = prices; + } + + public StrikethroughChangedItem evaluatedAt(OffsetDateTime evaluatedAt) { this.evaluatedAt = evaluatedAt; @@ -242,13 +280,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.sku, strikethroughChangedItem.sku) && Objects.equals(this.version, strikethroughChangedItem.version) && Objects.equals(this.price, strikethroughChangedItem.price) && + Objects.equals(this.prices, strikethroughChangedItem.prices) && Objects.equals(this.evaluatedAt, strikethroughChangedItem.evaluatedAt) && Objects.equals(this.effects, strikethroughChangedItem.effects); } @Override public int hashCode() { - return Objects.hash(id, catalogId, sku, version, price, evaluatedAt, effects); + return Objects.hash(id, catalogId, sku, version, price, prices, evaluatedAt, effects); } @@ -261,6 +300,7 @@ public String toString() { sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append(" prices: ").append(toIndentedString(prices)).append("\n"); sb.append(" evaluatedAt: ").append(toIndentedString(evaluatedAt)).append("\n"); sb.append(" effects: ").append(toIndentedString(effects)).append("\n"); sb.append("}"); diff --git a/src/test/java/one/talon/model/CampaignCollectionEditedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignCollectionEditedNotificationItemTest.java new file mode 100644 index 00000000..c3d6af1e --- /dev/null +++ b/src/test/java/one/talon/model/CampaignCollectionEditedNotificationItemTest.java @@ -0,0 +1,78 @@ +/* + * 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.Campaign; +import one.talon.model.CollectionWithoutPayload; +import one.talon.model.Ruleset; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CampaignCollectionEditedNotificationItem + */ +public class CampaignCollectionEditedNotificationItemTest { + private final CampaignCollectionEditedNotificationItem model = new CampaignCollectionEditedNotificationItem(); + + /** + * Model tests for CampaignCollectionEditedNotificationItem + */ + @Test + public void testCampaignCollectionEditedNotificationItem() { + // TODO: test CampaignCollectionEditedNotificationItem + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + + /** + * Test the property 'campaign' + */ + @Test + public void campaignTest() { + // TODO: test campaign + } + + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } + + /** + * Test the property 'collection' + */ + @Test + public void collectionTest() { + // TODO: test collection + } + +} diff --git a/src/test/java/one/talon/model/CampaignCollectionEditedNotificationTest.java b/src/test/java/one/talon/model/CampaignCollectionEditedNotificationTest.java index a0987340..dc0059b0 100644 --- a/src/test/java/one/talon/model/CampaignCollectionEditedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignCollectionEditedNotificationTest.java @@ -21,9 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.CollectionWithoutPayload; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignCollectionEditedNotificationItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,27 +44,27 @@ public void testCampaignCollectionEditedNotification() { } /** - * Test the property 'campaign' + * Test the property 'notificationType' */ @Test - public void campaignTest() { - // TODO: test campaign + public void notificationTypeTest() { + // TODO: test notificationType } /** - * Test the property 'ruleset' + * Test the property 'totalResultSize' */ @Test - public void rulesetTest() { - // TODO: test ruleset + public void totalResultSizeTest() { + // TODO: test totalResultSize } /** - * Test the property 'collection' + * Test the property 'data' */ @Test - public void collectionTest() { - // TODO: test collection + public void dataTest() { + // TODO: test data } } diff --git a/src/test/java/one/talon/model/CampaignCreatedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignCreatedNotificationItemTest.java new file mode 100644 index 00000000..8becb8b4 --- /dev/null +++ b/src/test/java/one/talon/model/CampaignCreatedNotificationItemTest.java @@ -0,0 +1,78 @@ +/* + * 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.Campaign; +import one.talon.model.CampaignEvaluationPosition; +import one.talon.model.Ruleset; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CampaignCreatedNotificationItem + */ +public class CampaignCreatedNotificationItemTest { + private final CampaignCreatedNotificationItem model = new CampaignCreatedNotificationItem(); + + /** + * Model tests for CampaignCreatedNotificationItem + */ + @Test + public void testCampaignCreatedNotificationItem() { + // TODO: test CampaignCreatedNotificationItem + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + + /** + * Test the property 'campaign' + */ + @Test + public void campaignTest() { + // TODO: test campaign + } + + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } + + /** + * Test the property 'evaluationPosition' + */ + @Test + public void evaluationPositionTest() { + // TODO: test evaluationPosition + } + +} diff --git a/src/test/java/one/talon/model/CampaignCreatedNotificationTest.java b/src/test/java/one/talon/model/CampaignCreatedNotificationTest.java index 553b7753..97d4cbfd 100644 --- a/src/test/java/one/talon/model/CampaignCreatedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignCreatedNotificationTest.java @@ -21,9 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.CampaignEvaluationPosition; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignCreatedNotificationItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,27 +44,27 @@ public void testCampaignCreatedNotification() { } /** - * Test the property 'campaign' + * Test the property 'notificationType' */ @Test - public void campaignTest() { - // TODO: test campaign + public void notificationTypeTest() { + // TODO: test notificationType } /** - * Test the property 'ruleset' + * Test the property 'totalResultSize' */ @Test - public void rulesetTest() { - // TODO: test ruleset + public void totalResultSizeTest() { + // TODO: test totalResultSize } /** - * Test the property 'evaluationPosition' + * Test the property 'data' */ @Test - public void evaluationPositionTest() { - // TODO: test evaluationPosition + public void dataTest() { + // TODO: test data } } diff --git a/src/test/java/one/talon/model/CampaignDeletedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignDeletedNotificationItemTest.java new file mode 100644 index 00000000..df4b2101 --- /dev/null +++ b/src/test/java/one/talon/model/CampaignDeletedNotificationItemTest.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 one.talon.model.Campaign; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CampaignDeletedNotificationItem + */ +public class CampaignDeletedNotificationItemTest { + private final CampaignDeletedNotificationItem model = new CampaignDeletedNotificationItem(); + + /** + * Model tests for CampaignDeletedNotificationItem + */ + @Test + public void testCampaignDeletedNotificationItem() { + // TODO: test CampaignDeletedNotificationItem + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + + /** + * Test the property 'campaign' + */ + @Test + public void campaignTest() { + // TODO: test campaign + } + + /** + * Test the property 'deletedAt' + */ + @Test + public void deletedAtTest() { + // TODO: test deletedAt + } + +} diff --git a/src/test/java/one/talon/model/CampaignDeletedNotificationTest.java b/src/test/java/one/talon/model/CampaignDeletedNotificationTest.java index 507ded71..7a1a2fd0 100644 --- a/src/test/java/one/talon/model/CampaignDeletedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignDeletedNotificationTest.java @@ -21,8 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import org.threeten.bp.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignDeletedNotificationItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,19 +44,27 @@ public void testCampaignDeletedNotification() { } /** - * Test the property 'campaign' + * Test the property 'notificationType' */ @Test - public void campaignTest() { - // TODO: test campaign + public void notificationTypeTest() { + // TODO: test notificationType } /** - * Test the property 'deletedAt' + * Test the property 'totalResultSize' */ @Test - public void deletedAtTest() { - // TODO: test deletedAt + public void totalResultSizeTest() { + // TODO: test totalResultSize + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data } } diff --git a/src/test/java/one/talon/model/CampaignEditedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignEditedNotificationItemTest.java new file mode 100644 index 00000000..b79bd48f --- /dev/null +++ b/src/test/java/one/talon/model/CampaignEditedNotificationItemTest.java @@ -0,0 +1,77 @@ +/* + * 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.Campaign; +import one.talon.model.Ruleset; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CampaignEditedNotificationItem + */ +public class CampaignEditedNotificationItemTest { + private final CampaignEditedNotificationItem model = new CampaignEditedNotificationItem(); + + /** + * Model tests for CampaignEditedNotificationItem + */ + @Test + public void testCampaignEditedNotificationItem() { + // TODO: test CampaignEditedNotificationItem + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + + /** + * Test the property 'campaign' + */ + @Test + public void campaignTest() { + // TODO: test campaign + } + + /** + * Test the property 'oldCampaign' + */ + @Test + public void oldCampaignTest() { + // TODO: test oldCampaign + } + + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } + +} diff --git a/src/test/java/one/talon/model/CampaignEditedNotificationTest.java b/src/test/java/one/talon/model/CampaignEditedNotificationTest.java index 17d24057..d10b340e 100644 --- a/src/test/java/one/talon/model/CampaignEditedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignEditedNotificationTest.java @@ -21,8 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignEditedNotificationItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,27 +44,27 @@ public void testCampaignEditedNotification() { } /** - * Test the property 'campaign' + * Test the property 'notificationType' */ @Test - public void campaignTest() { - // TODO: test campaign + public void notificationTypeTest() { + // TODO: test notificationType } /** - * Test the property 'oldCampaign' + * Test the property 'totalResultSize' */ @Test - public void oldCampaignTest() { - // TODO: test oldCampaign + public void totalResultSizeTest() { + // TODO: test totalResultSize } /** - * Test the property 'ruleset' + * Test the property 'data' */ @Test - public void rulesetTest() { - // TODO: test ruleset + public void dataTest() { + // TODO: test data } } diff --git a/src/test/java/one/talon/model/CampaignNotificationBaseTest.java b/src/test/java/one/talon/model/CampaignNotificationBaseTest.java new file mode 100644 index 00000000..822a5c91 --- /dev/null +++ b/src/test/java/one/talon/model/CampaignNotificationBaseTest.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 CampaignNotificationBase + */ +public class CampaignNotificationBaseTest { + private final CampaignNotificationBase model = new CampaignNotificationBase(); + + /** + * Model tests for CampaignNotificationBase + */ + @Test + public void testCampaignNotificationBase() { + // TODO: test CampaignNotificationBase + } + + /** + * Test the property 'notificationType' + */ + @Test + public void notificationTypeTest() { + // TODO: test notificationType + } + + /** + * Test the property 'totalResultSize' + */ + @Test + public void totalResultSizeTest() { + // TODO: test totalResultSize + } + +} diff --git a/src/test/java/one/talon/model/CampaignNotificationGenericTest.java b/src/test/java/one/talon/model/CampaignNotificationGenericTest.java new file mode 100644 index 00000000..9a434073 --- /dev/null +++ b/src/test/java/one/talon/model/CampaignNotificationGenericTest.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 CampaignNotificationGeneric + */ +public class CampaignNotificationGenericTest { + private final CampaignNotificationGeneric model = new CampaignNotificationGeneric(); + + /** + * Model tests for CampaignNotificationGeneric + */ + @Test + public void testCampaignNotificationGeneric() { + // TODO: test CampaignNotificationGeneric + } + + /** + * Test the property 'notificationType' + */ + @Test + public void notificationTypeTest() { + // TODO: test notificationType + } + + /** + * Test the property 'totalResultSize' + */ + @Test + public void totalResultSizeTest() { + // TODO: test totalResultSize + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/CampaignNotificationItemBaseTest.java b/src/test/java/one/talon/model/CampaignNotificationItemBaseTest.java new file mode 100644 index 00000000..37e0f5a8 --- /dev/null +++ b/src/test/java/one/talon/model/CampaignNotificationItemBaseTest.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 CampaignNotificationItemBase + */ +public class CampaignNotificationItemBaseTest { + private final CampaignNotificationItemBase model = new CampaignNotificationItemBase(); + + /** + * Model tests for CampaignNotificationItemBase + */ + @Test + public void testCampaignNotificationItemBase() { + // TODO: test CampaignNotificationItemBase + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + +} diff --git a/src/test/java/one/talon/model/CampaignRulesetChangedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignRulesetChangedNotificationItemTest.java new file mode 100644 index 00000000..180bcc3b --- /dev/null +++ b/src/test/java/one/talon/model/CampaignRulesetChangedNotificationItemTest.java @@ -0,0 +1,77 @@ +/* + * 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.Campaign; +import one.talon.model.Ruleset; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CampaignRulesetChangedNotificationItem + */ +public class CampaignRulesetChangedNotificationItemTest { + private final CampaignRulesetChangedNotificationItem model = new CampaignRulesetChangedNotificationItem(); + + /** + * Model tests for CampaignRulesetChangedNotificationItem + */ + @Test + public void testCampaignRulesetChangedNotificationItem() { + // TODO: test CampaignRulesetChangedNotificationItem + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + + /** + * Test the property 'campaign' + */ + @Test + public void campaignTest() { + // TODO: test campaign + } + + /** + * Test the property 'oldRuleset' + */ + @Test + public void oldRulesetTest() { + // TODO: test oldRuleset + } + + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } + +} diff --git a/src/test/java/one/talon/model/CampaignRulesetChangedNotificationTest.java b/src/test/java/one/talon/model/CampaignRulesetChangedNotificationTest.java index 29cb7773..038c9534 100644 --- a/src/test/java/one/talon/model/CampaignRulesetChangedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignRulesetChangedNotificationTest.java @@ -21,8 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignRulesetChangedNotificationItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,27 +44,27 @@ public void testCampaignRulesetChangedNotification() { } /** - * Test the property 'campaign' + * Test the property 'notificationType' */ @Test - public void campaignTest() { - // TODO: test campaign + public void notificationTypeTest() { + // TODO: test notificationType } /** - * Test the property 'oldRuleset' + * Test the property 'totalResultSize' */ @Test - public void oldRulesetTest() { - // TODO: test oldRuleset + public void totalResultSizeTest() { + // TODO: test totalResultSize } /** - * Test the property 'ruleset' + * Test the property 'data' */ @Test - public void rulesetTest() { - // TODO: test ruleset + public void dataTest() { + // TODO: test data } } diff --git a/src/test/java/one/talon/model/CampaignStateChangedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignStateChangedNotificationItemTest.java new file mode 100644 index 00000000..1c64177d --- /dev/null +++ b/src/test/java/one/talon/model/CampaignStateChangedNotificationItemTest.java @@ -0,0 +1,85 @@ +/* + * 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.Campaign; +import one.talon.model.Ruleset; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CampaignStateChangedNotificationItem + */ +public class CampaignStateChangedNotificationItemTest { + private final CampaignStateChangedNotificationItem model = new CampaignStateChangedNotificationItem(); + + /** + * Model tests for CampaignStateChangedNotificationItem + */ + @Test + public void testCampaignStateChangedNotificationItem() { + // TODO: test CampaignStateChangedNotificationItem + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + + /** + * Test the property 'campaign' + */ + @Test + public void campaignTest() { + // TODO: test campaign + } + + /** + * Test the property 'oldState' + */ + @Test + public void oldStateTest() { + // TODO: test oldState + } + + /** + * Test the property 'newState' + */ + @Test + public void newStateTest() { + // TODO: test newState + } + + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } + +} diff --git a/src/test/java/one/talon/model/CampaignStateChangedNotificationTest.java b/src/test/java/one/talon/model/CampaignStateChangedNotificationTest.java index b16716b6..7861bbdd 100644 --- a/src/test/java/one/talon/model/CampaignStateChangedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignStateChangedNotificationTest.java @@ -21,8 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.Campaign; -import one.talon.model.Ruleset; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CampaignStateChangedNotificationItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,35 +44,27 @@ public void testCampaignStateChangedNotification() { } /** - * Test the property 'campaign' + * Test the property 'notificationType' */ @Test - public void campaignTest() { - // TODO: test campaign + public void notificationTypeTest() { + // TODO: test notificationType } /** - * Test the property 'oldState' + * Test the property 'totalResultSize' */ @Test - public void oldStateTest() { - // TODO: test oldState + public void totalResultSizeTest() { + // TODO: test totalResultSize } /** - * Test the property 'newState' + * Test the property 'data' */ @Test - public void newStateTest() { - // TODO: test newState - } - - /** - * Test the property 'ruleset' - */ - @Test - public void rulesetTest() { - // TODO: test ruleset + public void dataTest() { + // TODO: test data } } diff --git a/src/test/java/one/talon/model/StrikethroughChangedItemTest.java b/src/test/java/one/talon/model/StrikethroughChangedItemTest.java index ddde3bbd..69405b05 100644 --- a/src/test/java/one/talon/model/StrikethroughChangedItemTest.java +++ b/src/test/java/one/talon/model/StrikethroughChangedItemTest.java @@ -23,7 +23,10 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; +import one.talon.model.PriceDetail; import one.talon.model.StrikethroughEffect; import org.threeten.bp.OffsetDateTime; import org.junit.Assert; @@ -85,6 +88,14 @@ public void priceTest() { // TODO: test price } + /** + * Test the property 'prices' + */ + @Test + public void pricesTest() { + // TODO: test prices + } + /** * Test the property 'evaluatedAt' */