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