diff --git a/README.md b/README.md index b30abb28..c773901d 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 + 13.2.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:13.2.0" ``` ### Others @@ -465,6 +465,7 @@ Class | Method | HTTP request | Description - [AudienceCustomer](docs/AudienceCustomer.md) - [AudienceIntegrationID](docs/AudienceIntegrationID.md) - [AudienceMembership](docs/AudienceMembership.md) +- [AudienceReference](docs/AudienceReference.md) - [AwardGiveawayEffectProps](docs/AwardGiveawayEffectProps.md) - [BaseCampaign](docs/BaseCampaign.md) - [BaseLoyaltyProgram](docs/BaseLoyaltyProgram.md) @@ -475,7 +476,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 +483,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 +501,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) @@ -687,6 +693,8 @@ Class | Method | HTTP request | Description - [InventoryCoupon](docs/InventoryCoupon.md) - [InventoryReferral](docs/InventoryReferral.md) - [ItemAttribute](docs/ItemAttribute.md) +- [LabelTargetAudience](docs/LabelTargetAudience.md) +- [LabelTargetNone](docs/LabelTargetNone.md) - [LedgerEntry](docs/LedgerEntry.md) - [LedgerInfo](docs/LedgerInfo.md) - [LedgerPointsEntryIntegrationAPI](docs/LedgerPointsEntryIntegrationAPI.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 244e0c83..1cc0cf02 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1918,6 +1918,29 @@ paths: schema: format: date-time type: string + - description: "Filter the results by a list of customer session IDs. \n\nTo\ + \ include multiple IDs, repeat the parameter for each one, for example,\ + \ \n`?customerSessionIDs=id1&customerSessionIDs=id2`.\n\nThe response contains\ + \ only data associated with the specified sessions.\n" + explode: true + in: query + name: customerSessionIDs + schema: + items: + type: string + type: array + style: form + - description: "Filter the results by a list of transaction UUIDs.\n\nTo include\ + \ multiple IDs, repeat the parameter for each one, for example, \n`?transactionUUIDs=uuid1&transactionUUIDs=uuid2`.\n\ + \nThe response contains only data associated with the specified transactions.\n" + explode: true + in: query + name: transactionUUIDs + schema: + items: + type: string + type: array + style: form - description: The number of items in the response. in: query name: pageSize @@ -1996,6 +2019,29 @@ paths: required: true schema: type: string + - description: "Filter the results by a list of customer session IDs. \n\nTo\ + \ include multiple IDs, repeat the parameter for each one, for example,\ + \ \n`?customerSessionIDs=id1&customerSessionIDs=id2`.\n\nThe response contains\ + \ only data associated with the specified sessions.\n" + explode: true + in: query + name: customerSessionIDs + schema: + items: + type: string + type: array + style: form + - description: "Filter the results by a list of transaction UUIDs.\n\nTo include\ + \ multiple IDs, repeat the parameter for each one, for example, \n`?transactionUUIDs=uuid1&transactionUUIDs=uuid2`.\n\ + \nThe response contains only data associated with the specified transactions.\n" + explode: true + in: query + name: transactionUUIDs + schema: + items: + type: string + type: array + style: form - description: The ID of the subledger by which we filter the data. in: query name: subledgerId @@ -4530,6 +4576,7 @@ paths: - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. + - `transactionUUID`: Unique identifier of the transaction in the UUID format. operationId: exportLoyaltyLedger parameters: - description: | @@ -4834,6 +4881,29 @@ paths: name: subledgerId schema: type: string + - description: "Filter the results by a list of customer session IDs. \n\nTo\ + \ include multiple IDs, repeat the parameter for each one, for example,\ + \ \n`?customerSessionIDs=id1&customerSessionIDs=id2`.\n\nThe response contains\ + \ only data associated with the specified sessions.\n" + explode: true + in: query + name: customerSessionIDs + schema: + items: + type: string + type: array + style: form + - description: "Filter the results by a list of transaction UUIDs.\n\nTo include\ + \ multiple IDs, repeat the parameter for each one, for example, \n`?transactionUUIDs=uuid1&transactionUUIDs=uuid2`.\n\ + \nThe response contains only data associated with the specified transactions.\n" + explode: true + in: query + name: transactionUUIDs + schema: + items: + type: string + type: array + style: form - description: | Date and time from which results are returned. Results are filtered by transaction creation date. @@ -4864,7 +4934,7 @@ paths: schema: default: 50 format: int64 - maximum: 50 + maximum: 1000 minimum: 1 type: integer - description: The number of items to skip when paging through large result @@ -5734,6 +5804,29 @@ paths: name: subledgerId schema: type: string + - description: "Filter the results by a list of customer session IDs. \n\nTo\ + \ include multiple IDs, repeat the parameter for each one, for example,\ + \ \n`?customerSessionIDs=id1&customerSessionIDs=id2`.\n\nThe response contains\ + \ only data associated with the specified sessions.\n" + explode: true + in: query + name: customerSessionIDs + schema: + items: + type: string + type: array + style: form + - description: "Filter the results by a list of transaction UUIDs.\n\nTo include\ + \ multiple IDs, repeat the parameter for each one, for example, \n`?transactionUUIDs=uuid1&transactionUUIDs=uuid2`.\n\ + \nThe response contains only data associated with the specified transactions.\n" + explode: true + in: query + name: transactionUUIDs + schema: + items: + type: string + type: array + style: form responses: "200": content: @@ -11953,20 +12046,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 +12184,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: @@ -14520,13 +14620,22 @@ components: items: type: string type: array - previousExpirationDate: - description: Expiry date before applying the extension. - format: date-time - type: string + previousExpirationDates: + description: Expiry dates of all active and pending points transactions + before applying the extension. + items: + format: date-time + type: string + type: array + newExpirationDates: + description: Expiry dates of all active and pending points transactions + after applying the extension. + items: + format: date-time + type: string + type: array required: - extensionDuration - - previousExpirationDate - programId - subLedgerId type: object @@ -24683,6 +24792,7 @@ components: type: addition cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total ruleName: Add 2 points @@ -24690,6 +24800,10 @@ components: programId: 324 startDate: 2022-01-02T15:04:05Z07:00 properties: + transactionUUID: + description: Unique identifier of the transaction in the UUID format. + example: ce59f12a-f53b-4014-a745-636d93f2bd3f + type: string created: description: Date and time the loyalty card transaction occurred. format: date-time @@ -24776,6 +24890,7 @@ components: - programId - startDate - subledgerId + - transactionUUID - type type: object LoyaltyLedgerEntryFlags: @@ -24788,7 +24903,7 @@ components: type: boolean type: object LedgerTransactionLogEntryIntegrationAPI: - description: Log entry for a given loyalty card transaction. + description: Log entry for a given loyalty profile transaction. example: rulesetId: 11 amount: 10.25 @@ -24798,6 +24913,7 @@ components: customerSessionId: 05c2da0d-48fa-4aa1-b629-898f58f1584d type: addition expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total ruleName: Add 2 points @@ -24805,6 +24921,10 @@ components: programId: 324 startDate: 2022-01-02T15:04:05Z07:00 properties: + transactionUUID: + description: Unique identifier of the transaction in the UUID format. + example: ce59f12a-f53b-4014-a745-636d93f2bd3f + type: string created: description: Date and time the loyalty transaction occurred. format: date-time @@ -24885,6 +25005,7 @@ components: - programId - startDate - subledgerId + - transactionUUID - type type: object CardLedgerPointsEntryIntegrationAPI: @@ -27323,6 +27444,50 @@ components: type: object StrikethroughEffectProps: type: object + LabelTargetNone: + description: Represents the target type when no entity is selected. + properties: + type: + enum: + - NONE + type: string + required: + - type + type: object + AudienceReference: + properties: + id: + description: The ID of the audience. + format: int64 + type: integer + integration: + description: The third-party integration of the audience. + type: string + integrationId: + description: The ID of this audience in the third-party integration. + example: 382370BKDB946 + maxLength: 1000 + minLength: 1 + type: string + required: + - id + type: object + LabelTargetAudience: + description: | + Represents the targeted audience. + properties: + type: + enum: + - AUDIENCE + type: string + audience: + $ref: '#/components/schemas/AudienceReference' + required: + - audience + - type + type: object + LabelTarget: + type: object StrikethroughEffect: description: The effect produced for the catalog item. properties: @@ -27363,6 +27528,26 @@ components: example: 2021-10-01T02:00:00Z format: date-time type: string + selectedPriceType: + description: The selected price type for this cart item (e.g. the price + for members only). + example: member + type: string + selectedPrice: + description: The value of the selected price type to apply to the SKU targeted + by this effect, before any discounts are applied. + example: 100.0 + type: number + adjustmentReferenceId: + description: The reference identifier of the selected price adjustment for + this cart item. + example: 68851723-e6fa-488f-ace9-112581e6c19b + type: string + targets: + description: A list of entities (e.g. audiences) targeted by this effect. + items: + $ref: '#/components/schemas/LabelTarget' + type: array required: - campaignId - props @@ -31451,6 +31636,7 @@ components: userId: 5 cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-01-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f importId: 4 customerProfileId: kda0fajs0-fad9f-fd9dfsa9-fd9dasjf9 subledgerId: sub-123 @@ -31466,6 +31652,10 @@ components: example: 123 format: int64 type: integer + transactionUUID: + description: Unique identifier of the transaction in the UUID format. + example: ce59f12a-f53b-4014-a745-636d93f2bd3f + type: string programId: description: ID of the loyalty program. example: 324 @@ -31575,6 +31765,7 @@ components: - programId - startDate - subledgerId + - transactionUUID - type type: object LoyaltyCardBatch: @@ -31708,6 +31899,7 @@ components: type: addition cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total id: 123 @@ -31715,6 +31907,10 @@ components: programId: 324 startDate: 2022-01-02T15:04:05Z07:00 properties: + transactionUUID: + description: Unique identifier of the transaction in the UUID format. + example: ce59f12a-f53b-4014-a745-636d93f2bd3f + type: string created: description: Date and time the loyalty card transaction occurred. format: date-time @@ -31802,6 +31998,7 @@ components: - programId - startDate - subledgerId + - transactionUUID - type type: object TransferLoyaltyCard: @@ -34876,6 +35073,7 @@ components: referenceId: description: A unique reference identifier, e.g. a UUID. example: 68851723-e6fa-488f-ace9-112581e6c19b + minLength: 1 type: string calculatedAt: description: The time at which this price was calculated. If provided, this @@ -34894,6 +35092,11 @@ components: example: 2021-09-12T10:12:42Z format: date-time type: string + contextId: + description: Identifier of the context of this price adjustment (e.g. summer + sale). + example: Summer2025 + type: string required: - priceType - referenceId @@ -38714,52 +38917,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 +38964,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 +38979,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 +39190,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 +39289,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 @@ -39337,14 +39682,8 @@ components: items: $ref: '#/components/schemas/ExpiringPointsData' type: array - NotificationType: - description: The type of notification. - enum: - - LoyaltyPointsExpiring - type: string required: - Data - - NotificationType - TotalResultSize type: object ExpiringCardPointsData: @@ -39406,14 +39745,8 @@ components: items: $ref: '#/components/schemas/ExpiringCardPointsData' type: array - NotificationType: - description: The type of notification. - enum: - - LoyaltyCardPointsExpiring - type: string required: - Data - - NotificationType - TotalResultSize type: object AddedDeductedPointsNotification: @@ -39488,17 +39821,10 @@ components: were earned or lost. example: cc53e4fa-547f-4f5e-8333-76e05c381f67 type: string - NotificationType: - description: The type of notification. - enum: - - LoyaltyPointsDeducted - - LoyaltyPointsAdded - type: string required: - Amount - EmployeeName - LoyaltyProgramID - - NotificationType - Operation - ProfileIntegrationID - Reason @@ -39562,14 +39888,8 @@ components: items: $ref: '#/components/schemas/PendingActivePointsData' type: array - NotificationType: - description: The type of notification. - enum: - - LoyaltyPointsPendingToActive - type: string required: - Data - - NotificationType - TotalResultSize type: object TierUpgradeData: @@ -39641,14 +39961,8 @@ components: items: $ref: '#/components/schemas/TierUpgradeData' type: array - NotificationType: - description: The type of notification. - enum: - - TierUpgrade - type: string required: - Data - - NotificationType - TotalResultSize type: object TierDowngradeData: @@ -39710,14 +40024,8 @@ components: items: $ref: '#/components/schemas/TierDowngradeData' type: array - NotificationType: - description: The type of notification. - enum: - - TierDowngrade - type: string required: - Data - - NotificationType - TotalResultSize type: object TierWillDowngradeData: @@ -39780,14 +40088,8 @@ components: items: $ref: '#/components/schemas/TierWillDowngradeData' type: array - NotificationType: - description: The type of notification. - enum: - - TierWillDowngrade - type: string required: - Data - - NotificationType - TotalResultSize type: object ExpiringCouponsData: @@ -39865,14 +40167,8 @@ components: items: $ref: '#/components/schemas/ExpiringCouponsData' type: array - NotificationType: - description: The type of notification. - enum: - - CouponCodeExpiring - type: string required: - Data - - NotificationType - TotalResultSize type: object CardAddedDeductedPointsNotification: @@ -39951,12 +40247,6 @@ components: were earned or lost. example: cc53e4fa-547f-4f5e-8333-76e05c381f67 type: string - NotificationType: - description: The type of notification. - enum: - - LoyaltyCardPointsDeducted - - LoyaltyCardPointsAdded - type: string CardIdentifier: description: Loyalty card identification number. example: 123-456-789ATBC @@ -39972,7 +40262,6 @@ components: - CardIdentifier - EmployeeName - LoyaltyProgramID - - NotificationType - Operation - ProfileIntegrationIDs - Reason @@ -40186,6 +40475,7 @@ components: type: addition cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total ruleName: Add 2 points @@ -40199,6 +40489,7 @@ components: type: addition cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total ruleName: Add 2 points @@ -40228,6 +40519,7 @@ components: customerSessionId: 05c2da0d-48fa-4aa1-b629-898f58f1584d type: addition expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total ruleName: Add 2 points @@ -40242,6 +40534,7 @@ components: customerSessionId: 05c2da0d-48fa-4aa1-b629-898f58f1584d type: addition expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total ruleName: Add 2 points @@ -42207,6 +42500,7 @@ components: userId: 5 cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-01-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f importId: 4 customerProfileId: kda0fajs0-fad9f-fd9dfsa9-fd9dasjf9 subledgerId: sub-123 @@ -42227,6 +42521,7 @@ components: userId: 5 cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-01-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f importId: 4 customerProfileId: kda0fajs0-fad9f-fd9dfsa9-fd9dasjf9 subledgerId: sub-123 @@ -42375,6 +42670,7 @@ components: type: addition cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total id: 123 @@ -42388,6 +42684,7 @@ components: type: addition cardIdentifier: summer-loyalty-card-0543 expiryDate: 2022-08-02T15:04:05Z07:00 + transactionUUID: ce59f12a-f53b-4014-a745-636d93f2bd3f subledgerId: sub-123 name: Reward 10% points of a purchase's current total id: 123 diff --git a/build.gradle b/build.gradle index 8a34b20d..bdcd7756 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 = '13.2.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.18.0' compile 'org.threeten:threetenbp:1.4.3' diff --git a/build.sbt b/build.sbt index fc6a5b0b..2a1d0a49 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 := "13.2.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/AddedDeductedPointsNotification.md b/docs/AddedDeductedPointsNotification.md index dbad7aeb..728fab6b 100644 --- a/docs/AddedDeductedPointsNotification.md +++ b/docs/AddedDeductedPointsNotification.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | The start date for loyalty points. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The expiration date for loyalty points. | [optional] **sessionIntegrationID** | **String** | The integration ID of the session through which the points were earned or lost. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | @@ -41,12 +40,3 @@ DEDUCTION | "deduction" -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -LOYALTYPOINTSDEDUCTED | "LoyaltyPointsDeducted" -LOYALTYPOINTSADDED | "LoyaltyPointsAdded" - - - diff --git a/docs/AudienceReference.md b/docs/AudienceReference.md new file mode 100644 index 00000000..3160dd67 --- /dev/null +++ b/docs/AudienceReference.md @@ -0,0 +1,14 @@ + + +# AudienceReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | The ID of the audience. | +**integration** | **String** | The third-party integration of the audience. | [optional] +**integrationId** | **String** | The ID of this audience in the third-party integration. | [optional] + + + 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/CardAddedDeductedPointsNotification.md b/docs/CardAddedDeductedPointsNotification.md index 8c57b8f6..16fb2afa 100644 --- a/docs/CardAddedDeductedPointsNotification.md +++ b/docs/CardAddedDeductedPointsNotification.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | The start date for loyalty points. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The expiration date for loyalty points. | [optional] **sessionIntegrationID** | **String** | The integration ID of the session through which the points were earned or lost. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | **cardIdentifier** | **String** | Loyalty card identification number. | **usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to `0` for no limit. | @@ -43,12 +42,3 @@ DEDUCTION | "deduction" -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -LOYALTYCARDPOINTSDEDUCTED | "LoyaltyCardPointsDeducted" -LOYALTYCARDPOINTSADDED | "LoyaltyCardPointsAdded" - - - diff --git a/docs/CardLedgerTransactionLogEntry.md b/docs/CardLedgerTransactionLogEntry.md index 464d557a..1dfdb546 100644 --- a/docs/CardLedgerTransactionLogEntry.md +++ b/docs/CardLedgerTransactionLogEntry.md @@ -7,6 +7,7 @@ Log entry for a given loyalty card transaction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**transactionUUID** | **String** | Unique identifier of the transaction in the UUID format. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty card transaction occurred. | **programId** | **Long** | ID of the loyalty program. | **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | diff --git a/docs/CardLedgerTransactionLogEntryIntegrationAPI.md b/docs/CardLedgerTransactionLogEntryIntegrationAPI.md index 5314c9d9..4165a4c5 100644 --- a/docs/CardLedgerTransactionLogEntryIntegrationAPI.md +++ b/docs/CardLedgerTransactionLogEntryIntegrationAPI.md @@ -7,6 +7,7 @@ Log entry for a given loyalty card transaction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**transactionUUID** | **String** | Unique identifier of the transaction in the UUID format. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty card transaction occurred. | **programId** | **Long** | ID of the loyalty program. | **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | diff --git a/docs/ExpiringCardPointsNotification.md b/docs/ExpiringCardPointsNotification.md index 110b6f64..ad267a98 100644 --- a/docs/ExpiringCardPointsNotification.md +++ b/docs/ExpiringCardPointsNotification.md @@ -8,15 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | **data** | [**List<ExpiringCardPointsData>**](ExpiringCardPointsData.md) | The array of expiring points. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | - - - -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -LOYALTYCARDPOINTSEXPIRING | "LoyaltyCardPointsExpiring" diff --git a/docs/ExpiringCouponsNotification.md b/docs/ExpiringCouponsNotification.md index e8791dd5..1f475266 100644 --- a/docs/ExpiringCouponsNotification.md +++ b/docs/ExpiringCouponsNotification.md @@ -8,15 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | **data** | [**List<ExpiringCouponsData>**](ExpiringCouponsData.md) | The array of expiring coupon notifications. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | - - - -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -COUPONCODEEXPIRING | "CouponCodeExpiring" diff --git a/docs/ExpiringPointsNotification.md b/docs/ExpiringPointsNotification.md index 7d1bd837..f47ee3b2 100644 --- a/docs/ExpiringPointsNotification.md +++ b/docs/ExpiringPointsNotification.md @@ -8,15 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | **data** | [**List<ExpiringPointsData>**](ExpiringPointsData.md) | The array of expiring points. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | - - - -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -LOYALTYPOINTSEXPIRING | "LoyaltyPointsExpiring" diff --git a/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md b/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md index d98f9e0f..f0971006 100644 --- a/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md +++ b/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md @@ -11,7 +11,8 @@ Name | Type | Description | Notes **subLedgerId** | **String** | API name of the loyalty program subledger that contains these points. added. | **extensionDuration** | **String** | Time frame by which the expiry date extends. The time format is either: - immediate, or - an **integer** followed by a letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | **transactionUUIDs** | **List<String>** | The list of identifiers of transactions affected affected by the extension. | [optional] -**previousExpirationDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiry date before applying the extension. | +**previousExpirationDates** | [**List<OffsetDateTime>**](OffsetDateTime.md) | Expiry dates of all active and pending points transactions before applying the extension. | [optional] +**newExpirationDates** | [**List<OffsetDateTime>**](OffsetDateTime.md) | Expiry dates of all active and pending points transactions after applying the extension. | [optional] diff --git a/docs/IntegrationApi.md b/docs/IntegrationApi.md index 1d90729e..999f79ea 100644 --- a/docs/IntegrationApi.md +++ b/docs/IntegrationApi.md @@ -1300,7 +1300,7 @@ Name | Type | Description | Notes ## getLoyaltyCardTransactions -> InlineResponse2003 getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip) +> InlineResponse2003 getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, customerSessionIDs, transactionUUIDs, pageSize, skip) List card's transactions @@ -1335,10 +1335,12 @@ public class Example { String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + List customerSessionIDs = Arrays.asList(); // List | Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. + List transactionUUIDs = Arrays.asList(); // List | Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. Long pageSize = 50lL; // Long | The number of items in the response. Long skip = 56L; // Long | The number of items to skip when paging through large result sets. try { - InlineResponse2003 result = apiInstance.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + InlineResponse2003 result = apiInstance.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, customerSessionIDs, transactionUUIDs, pageSize, skip); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling IntegrationApi#getLoyaltyCardTransactions"); @@ -1362,6 +1364,8 @@ Name | Type | Description | Notes **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **customerSessionIDs** | [**List<String>**](String.md)| Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. | [optional] + **transactionUUIDs** | [**List<String>**](String.md)| Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. | [optional] **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] @@ -1474,7 +1478,7 @@ Name | Type | Description | Notes ## getLoyaltyProgramProfileTransactions -> InlineResponse2004 getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip) +> InlineResponse2004 getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, customerSessionIDs, transactionUUIDs, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip) List customer's loyalty transactions @@ -1505,6 +1509,8 @@ public class Example { IntegrationApi apiInstance = new IntegrationApi(defaultClient); Long loyaltyProgramId = 56L; // Long | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. + List customerSessionIDs = Arrays.asList(); // List | Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. + List transactionUUIDs = Arrays.asList(); // List | Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. @@ -1512,7 +1518,7 @@ public class Example { Long pageSize = 50lL; // Long | The number of items in the response. Long skip = 56L; // Long | The number of items to skip when paging through large result sets. try { - InlineResponse2004 result = apiInstance.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + InlineResponse2004 result = apiInstance.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, customerSessionIDs, transactionUUIDs, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling IntegrationApi#getLoyaltyProgramProfileTransactions"); @@ -1532,6 +1538,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **loyaltyProgramId** | **Long**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | + **customerSessionIDs** | [**List<String>**](String.md)| Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. | [optional] + **transactionUUIDs** | [**List<String>**](String.md)| Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. | [optional] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] diff --git a/docs/LabelTargetAudience.md b/docs/LabelTargetAudience.md new file mode 100644 index 00000000..574524df --- /dev/null +++ b/docs/LabelTargetAudience.md @@ -0,0 +1,22 @@ + + +# LabelTargetAudience + +Represents the targeted audience. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**TypeEnum**](#TypeEnum) | | +**audience** | [**AudienceReference**](AudienceReference.md) | | + + + +## Enum: TypeEnum + +Name | Value +---- | ----- +AUDIENCE | "AUDIENCE" + + + diff --git a/docs/LabelTargetNone.md b/docs/LabelTargetNone.md new file mode 100644 index 00000000..bdde5aca --- /dev/null +++ b/docs/LabelTargetNone.md @@ -0,0 +1,21 @@ + + +# LabelTargetNone + +Represents the target type when no entity is selected. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**TypeEnum**](#TypeEnum) | | + + + +## Enum: TypeEnum + +Name | Value +---- | ----- +NONE | "NONE" + + + diff --git a/docs/LedgerTransactionLogEntryIntegrationAPI.md b/docs/LedgerTransactionLogEntryIntegrationAPI.md index 66a0239e..870d36c8 100644 --- a/docs/LedgerTransactionLogEntryIntegrationAPI.md +++ b/docs/LedgerTransactionLogEntryIntegrationAPI.md @@ -2,11 +2,12 @@ # LedgerTransactionLogEntryIntegrationAPI -Log entry for a given loyalty card transaction. +Log entry for a given loyalty profile transaction. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**transactionUUID** | **String** | Unique identifier of the transaction in the UUID format. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty transaction occurred. | **programId** | **Long** | ID of the loyalty program. | **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] diff --git a/docs/LoyaltyProgramTransaction.md b/docs/LoyaltyProgramTransaction.md index 7f0efc1e..19e4b099 100644 --- a/docs/LoyaltyProgramTransaction.md +++ b/docs/LoyaltyProgramTransaction.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Long** | ID of the loyalty ledger transaction. | +**transactionUUID** | **String** | Unique identifier of the transaction in the UUID format. | **programId** | **Long** | ID of the loyalty program. | **campaignId** | **Long** | ID of the campaign. | [optional] **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty transaction occurred. | diff --git a/docs/ManagementApi.md b/docs/ManagementApi.md index 7181b571..43117997 100644 --- a/docs/ManagementApi.md +++ b/docs/ManagementApi.md @@ -4479,7 +4479,7 @@ Name | Type | Description | Notes Export customer's transaction logs -Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. +Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. - `transactionUUID`: Unique identifier of the transaction in the UUID format. ### Example @@ -8598,7 +8598,7 @@ Name | Type | Description | Notes ## getLoyaltyCardTransactionLogs -> InlineResponse20019 getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId) +> InlineResponse20019 getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs) List card's transactions @@ -8640,8 +8640,10 @@ public class Example { Long pageSize = 1000lL; // Long | The number of items in the response. Long skip = 56L; // Long | The number of items to skip when paging through large result sets. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. + List customerSessionIDs = Arrays.asList(); // List | Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. + List transactionUUIDs = Arrays.asList(); // List | Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. try { - InlineResponse20019 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); + InlineResponse20019 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyCardTransactionLogs"); @@ -8666,6 +8668,8 @@ Name | Type | Description | Notes **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] + **customerSessionIDs** | [**List<String>**](String.md)| Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. | [optional] + **transactionUUIDs** | [**List<String>**](String.md)| Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. | [optional] ### Return type cool @@ -8940,7 +8944,7 @@ Name | Type | Description | Notes ## getLoyaltyProgramTransactions -> InlineResponse20017 getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip) +> InlineResponse20017 getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip) List loyalty program transactions @@ -8978,12 +8982,14 @@ public class Example { Long loyaltyProgramId = 56L; // Long | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. + List customerSessionIDs = Arrays.asList(); // List | Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. + List transactionUUIDs = Arrays.asList(); // List | Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. Long pageSize = 50lL; // Long | The number of items in the response. Long skip = 56L; // Long | The number of items to skip when paging through large result sets. try { - InlineResponse20017 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); + InlineResponse20017 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyProgramTransactions"); @@ -9004,6 +9010,8 @@ Name | Type | Description | Notes **loyaltyProgramId** | **Long**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] + **customerSessionIDs** | [**List<String>**](String.md)| Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. | [optional] + **transactionUUIDs** | [**List<String>**](String.md)| Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. | [optional] **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] diff --git a/docs/NewPriceAdjustment.md b/docs/NewPriceAdjustment.md index 6a58713d..2495f01d 100644 --- a/docs/NewPriceAdjustment.md +++ b/docs/NewPriceAdjustment.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **calculatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The time at which this price was calculated. If provided, this is used to determine the most recent price adjustment to choose if price adjustments overlap. Defaults to internal creation time if not provided. | [optional] **effectiveFrom** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time from which the price adjustment is effective. | [optional] **effectiveUntil** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time until which the price adjustment is effective. | [optional] +**contextId** | **String** | Identifier of the context of this price adjustment (e.g. summer sale). | [optional] diff --git a/docs/PendingActivePointsNotification.md b/docs/PendingActivePointsNotification.md index 0f592909..890cc8fc 100644 --- a/docs/PendingActivePointsNotification.md +++ b/docs/PendingActivePointsNotification.md @@ -8,15 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | **data** | [**List<PendingActivePointsData>**](PendingActivePointsData.md) | The array of pending points. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | - - - -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -LOYALTYPOINTSPENDINGTOACTIVE | "LoyaltyPointsPendingToActive" 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/docs/StrikethroughEffect.md b/docs/StrikethroughEffect.md index 8fb4b48c..195b02a8 100644 --- a/docs/StrikethroughEffect.md +++ b/docs/StrikethroughEffect.md @@ -15,6 +15,10 @@ Name | Type | Description | Notes **props** | [**Object**](.md) | | **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the time frame where the effect is active in UTC. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the time frame where the effect is active in UTC. | [optional] +**selectedPriceType** | **String** | The selected price type for this cart item (e.g. the price for members only). | [optional] +**selectedPrice** | [**BigDecimal**](BigDecimal.md) | The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied. | [optional] +**adjustmentReferenceId** | **String** | The reference identifier of the selected price adjustment for this cart item. | [optional] +**targets** | **List<Object>** | A list of entities (e.g. audiences) targeted by this effect. | [optional] diff --git a/docs/TierDowngradeNotification.md b/docs/TierDowngradeNotification.md index 8e2597a6..86b1bd7a 100644 --- a/docs/TierDowngradeNotification.md +++ b/docs/TierDowngradeNotification.md @@ -8,15 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | **data** | [**List<TierDowngradeData>**](TierDowngradeData.md) | The array of tier downgrade notifications. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | - - - -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -TIERDOWNGRADE | "TierDowngrade" diff --git a/docs/TierUpgradeNotification.md b/docs/TierUpgradeNotification.md index 54c1ee9a..4418f78c 100644 --- a/docs/TierUpgradeNotification.md +++ b/docs/TierUpgradeNotification.md @@ -8,15 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | **data** | [**List<TierUpgradeData>**](TierUpgradeData.md) | The array of tier upgrade notifications. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | - - - -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -TIERUPGRADE | "TierUpgrade" diff --git a/docs/TierWillDowngradeNotification.md b/docs/TierWillDowngradeNotification.md index d998289f..132d4c6d 100644 --- a/docs/TierWillDowngradeNotification.md +++ b/docs/TierWillDowngradeNotification.md @@ -8,15 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | **data** | [**List<TierWillDowngradeData>**](TierWillDowngradeData.md) | The array of upcoming tier downgrade notifications. | -**notificationType** | [**NotificationTypeEnum**](#NotificationTypeEnum) | The type of notification. | - - - -## Enum: NotificationTypeEnum - -Name | Value ----- | ----- -TIERWILLDOWNGRADE | "TierWillDowngrade" diff --git a/pom.xml b/pom.xml index bd76e1c5..5a206018 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ talon-one-client jar talon-one-client - 13.1.0 + 13.2.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..d6ef972e 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/13.2.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/one/talon/api/IntegrationApi.java b/src/main/java/one/talon/api/IntegrationApi.java index 13b9d991..d0d223e3 100644 --- a/src/main/java/one/talon/api/IntegrationApi.java +++ b/src/main/java/one/talon/api/IntegrationApi.java @@ -2316,6 +2316,8 @@ public okhttp3.Call getLoyaltyCardPointsAsync(Long loyaltyProgramId, String loya * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param pageSize The number of items in the response. (optional, default to 50l) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress @@ -2330,7 +2332,7 @@ public okhttp3.Call getLoyaltyCardPointsAsync(Long loyaltyProgramId, String loya 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionsCall(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionsCall(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, List customerSessionIDs, List transactionUUIDs, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -2356,6 +2358,14 @@ public okhttp3.Call getLoyaltyCardTransactionsCall(Long loyaltyProgramId, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("endDate", endDate)); } + if (customerSessionIDs != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "customerSessionIDs", customerSessionIDs)); + } + + if (transactionUUIDs != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "transactionUUIDs", transactionUUIDs)); + } + if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); } @@ -2386,7 +2396,7 @@ public okhttp3.Call getLoyaltyCardTransactionsCall(Long loyaltyProgramId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, List customerSessionIDs, List transactionUUIDs, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -2399,7 +2409,7 @@ private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Long loyaltyPr } - okhttp3.Call localVarCall = getLoyaltyCardTransactionsCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyCardTransactionsCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, customerSessionIDs, transactionUUIDs, pageSize, skip, _callback); return localVarCall; } @@ -2413,6 +2423,8 @@ private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Long loyaltyPr * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param pageSize The number of items in the response. (optional, default to 50l) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2003 @@ -2426,8 +2438,8 @@ private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Long loyaltyPr 404 Not found - */ - public InlineResponse2003 getLoyaltyCardTransactions(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardTransactionsWithHttpInfo(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + public InlineResponse2003 getLoyaltyCardTransactions(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, List customerSessionIDs, List transactionUUIDs, Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardTransactionsWithHttpInfo(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, customerSessionIDs, transactionUUIDs, pageSize, skip); return localVarResp.getData(); } @@ -2440,6 +2452,8 @@ public InlineResponse2003 getLoyaltyCardTransactions(Long loyaltyProgramId, Stri * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param pageSize The number of items in the response. (optional, default to 50l) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2003> @@ -2453,8 +2467,8 @@ public InlineResponse2003 getLoyaltyCardTransactions(Long loyaltyProgramId, Stri 404 Not found - */ - public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, null); + public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, List customerSessionIDs, List transactionUUIDs, Long pageSize, Long skip) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, customerSessionIDs, transactionUUIDs, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2468,6 +2482,8 @@ public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Lo * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param pageSize The number of items in the response. (optional, default to 50l) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes @@ -2482,9 +2498,9 @@ public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Lo 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionsAsync(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionsAsync(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, List customerSessionIDs, List transactionUUIDs, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, customerSessionIDs, transactionUUIDs, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2658,6 +2674,8 @@ public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Long loyaltyProgramId, S * Build call for getLoyaltyProgramProfileTransactions * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) @@ -2676,7 +2694,7 @@ public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Long loyaltyProgramId, S 404 Not found - */ - public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Long loyaltyProgramId, String integrationId, List customerSessionIDs, List transactionUUIDs, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -2686,6 +2704,14 @@ public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Long loyaltyProgram List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (customerSessionIDs != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "customerSessionIDs", customerSessionIDs)); + } + + if (transactionUUIDs != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "transactionUUIDs", transactionUUIDs)); + } + if (subledgerId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("subledgerId", subledgerId)); } @@ -2732,7 +2758,7 @@ public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Long loyaltyProgram } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Long loyaltyProgramId, String integrationId, List customerSessionIDs, List transactionUUIDs, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -2745,7 +2771,7 @@ private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Long } - okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsCall(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsCall(loyaltyProgramId, integrationId, customerSessionIDs, transactionUUIDs, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); return localVarCall; } @@ -2755,6 +2781,8 @@ private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Long * Retrieve paginated results of loyalty transaction logs for the given Integration ID in the specified loyalty program. You can filter transactions by date. If no filters are applied, the last 50 loyalty transactions for the given integration ID are returned. **Note:** To retrieve all loyalty program transaction logs in a given loyalty program, use the [List loyalty program transactions](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgramTransactions) endpoint. * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) @@ -2772,8 +2800,8 @@ private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Long 404 Not found - */ - public InlineResponse2004 getLoyaltyProgramProfileTransactions(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramProfileTransactionsWithHttpInfo(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + public InlineResponse2004 getLoyaltyProgramProfileTransactions(Long loyaltyProgramId, String integrationId, List customerSessionIDs, List transactionUUIDs, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getLoyaltyProgramProfileTransactionsWithHttpInfo(loyaltyProgramId, integrationId, customerSessionIDs, transactionUUIDs, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); return localVarResp.getData(); } @@ -2782,6 +2810,8 @@ public InlineResponse2004 getLoyaltyProgramProfileTransactions(Long loyaltyProgr * Retrieve paginated results of loyalty transaction logs for the given Integration ID in the specified loyalty program. You can filter transactions by date. If no filters are applied, the last 50 loyalty transactions for the given integration ID are returned. **Note:** To retrieve all loyalty program transaction logs in a given loyalty program, use the [List loyalty program transactions](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgramTransactions) endpoint. * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) @@ -2799,8 +2829,8 @@ public InlineResponse2004 getLoyaltyProgramProfileTransactions(Long loyaltyProgr 404 Not found - */ - public ApiResponse getLoyaltyProgramProfileTransactionsWithHttpInfo(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, null); + public ApiResponse getLoyaltyProgramProfileTransactionsWithHttpInfo(Long loyaltyProgramId, String integrationId, List customerSessionIDs, List transactionUUIDs, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, integrationId, customerSessionIDs, transactionUUIDs, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2810,6 +2840,8 @@ public ApiResponse getLoyaltyProgramProfileTransactionsWithH * Retrieve paginated results of loyalty transaction logs for the given Integration ID in the specified loyalty program. You can filter transactions by date. If no filters are applied, the last 50 loyalty transactions for the given integration ID are returned. **Note:** To retrieve all loyalty program transaction logs in a given loyalty program, use the [List loyalty program transactions](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgramTransactions) endpoint. * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) @@ -2828,9 +2860,9 @@ public ApiResponse getLoyaltyProgramProfileTransactionsWithH 404 Not found - */ - public okhttp3.Call getLoyaltyProgramProfileTransactionsAsync(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramProfileTransactionsAsync(Long loyaltyProgramId, String integrationId, List customerSessionIDs, List transactionUUIDs, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, integrationId, customerSessionIDs, transactionUUIDs, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/one/talon/api/ManagementApi.java b/src/main/java/one/talon/api/ManagementApi.java index 69b8265d..3f78ac5a 100644 --- a/src/main/java/one/talon/api/ManagementApi.java +++ b/src/main/java/one/talon/api/ManagementApi.java @@ -7082,7 +7082,7 @@ private okhttp3.Call exportLoyaltyLedgerValidateBeforeCall(OffsetDateTime rangeS /** * Export customer's transaction logs - * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. + * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. - `transactionUUID`: Unique identifier of the transaction in the UUID format. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param loyaltyProgramId The identifier for the loyalty program. (required) @@ -7103,7 +7103,7 @@ public String exportLoyaltyLedger(OffsetDateTime rangeStart, OffsetDateTime rang /** * Export customer's transaction logs - * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. + * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. - `transactionUUID`: Unique identifier of the transaction in the UUID format. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param loyaltyProgramId The identifier for the loyalty program. (required) @@ -7125,7 +7125,7 @@ public ApiResponse exportLoyaltyLedgerWithHttpInfo(OffsetDateTime rangeS /** * Export customer's transaction logs (asynchronously) - * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. + * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. - `transactionUUID`: Unique identifier of the transaction in the UUID format. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param loyaltyProgramId The identifier for the loyalty program. (required) @@ -13919,6 +13919,8 @@ public okhttp3.Call getLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCar * @param pageSize The number of items in the response. (optional, default to 1000l) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -13930,7 +13932,7 @@ public okhttp3.Call getLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCar 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionLogsCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionLogsCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13960,6 +13962,14 @@ public okhttp3.Call getLoyaltyCardTransactionLogsCall(Long loyaltyProgramId, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("subledgerId", subledgerId)); } + if (customerSessionIDs != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "customerSessionIDs", customerSessionIDs)); + } + + if (transactionUUIDs != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "transactionUUIDs", transactionUUIDs)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -13982,7 +13992,7 @@ public okhttp3.Call getLoyaltyCardTransactionLogsCall(Long loyaltyProgramId, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -13995,7 +14005,7 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyalt } - okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, _callback); + okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs, _callback); return localVarCall; } @@ -14010,6 +14020,8 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyalt * @param pageSize The number of items in the response. (optional, default to 1000l) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @return InlineResponse20019 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14020,8 +14032,8 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyalt 404 Not found - */ - public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardTransactionLogsWithHttpInfo(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); + public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardTransactionLogsWithHttpInfo(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); return localVarResp.getData(); } @@ -14035,6 +14047,8 @@ public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, * @param pageSize The number of items in the response. (optional, default to 1000l) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @return ApiResponse<InlineResponse20019> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14045,8 +14059,8 @@ public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, 404 Not found - */ - public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, null); + public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14061,6 +14075,8 @@ public ApiResponse getLoyaltyCardTransactionLogsWithHttpInf * @param pageSize The number of items in the response. (optional, default to 1000l) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -14072,9 +14088,9 @@ public ApiResponse getLoyaltyCardTransactionLogsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, _callback); + okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14483,6 +14499,8 @@ public okhttp3.Call getLoyaltyProgramAsync(Long loyaltyProgramId, final ApiCallb * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param pageSize The number of items in the response. (optional, default to 50l) @@ -14499,7 +14517,7 @@ public okhttp3.Call getLoyaltyProgramAsync(Long loyaltyProgramId, final ApiCallb 404 Not found - */ - public okhttp3.Call getLoyaltyProgramTransactionsCall(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramTransactionsCall(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -14516,6 +14534,14 @@ public okhttp3.Call getLoyaltyProgramTransactionsCall(Long loyaltyProgramId, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("subledgerId", subledgerId)); } + if (customerSessionIDs != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "customerSessionIDs", customerSessionIDs)); + } + + if (transactionUUIDs != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "transactionUUIDs", transactionUUIDs)); + } + if (startDate != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("startDate", startDate)); } @@ -14554,7 +14580,7 @@ public okhttp3.Call getLoyaltyProgramTransactionsCall(Long loyaltyProgramId, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -14562,7 +14588,7 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyalt } - okhttp3.Call localVarCall = getLoyaltyProgramTransactionsCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyProgramTransactionsCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, _callback); return localVarCall; } @@ -14573,6 +14599,8 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyalt * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param pageSize The number of items in the response. (optional, default to 50l) @@ -14588,8 +14616,8 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyalt 404 Not found - */ - public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramTransactionsWithHttpInfo(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); + public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getLoyaltyProgramTransactionsWithHttpInfo(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip); return localVarResp.getData(); } @@ -14599,6 +14627,8 @@ public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param pageSize The number of items in the response. (optional, default to 50l) @@ -14614,8 +14644,8 @@ public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, 404 Not found - */ - public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, null); + public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14626,6 +14656,8 @@ public ApiResponse getLoyaltyProgramTransactionsWithHttpInf * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) + * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param pageSize The number of items in the response. (optional, default to 50l) @@ -14642,9 +14674,9 @@ public ApiResponse getLoyaltyProgramTransactionsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyProgramTransactionsAsync(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramTransactionsAsync(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/one/talon/model/AddedDeductedPointsNotification.java b/src/main/java/one/talon/model/AddedDeductedPointsNotification.java index 477fbb8f..859c3ffe 100644 --- a/src/main/java/one/talon/model/AddedDeductedPointsNotification.java +++ b/src/main/java/one/talon/model/AddedDeductedPointsNotification.java @@ -175,57 +175,6 @@ public OperationEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_SESSION_INTEGRATION_I_D) private String sessionIntegrationID; - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - LOYALTYPOINTSDEDUCTED("LoyaltyPointsDeducted"), - - LOYALTYPOINTSADDED("LoyaltyPointsAdded"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public AddedDeductedPointsNotification profileIntegrationID(String profileIntegrationID) { @@ -495,28 +444,6 @@ public void setSessionIntegrationID(String sessionIntegrationID) { } - public AddedDeductedPointsNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -537,13 +464,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.operation, addedDeductedPointsNotification.operation) && Objects.equals(this.startDate, addedDeductedPointsNotification.startDate) && Objects.equals(this.expiryDate, addedDeductedPointsNotification.expiryDate) && - Objects.equals(this.sessionIntegrationID, addedDeductedPointsNotification.sessionIntegrationID) && - Objects.equals(this.notificationType, addedDeductedPointsNotification.notificationType); + Objects.equals(this.sessionIntegrationID, addedDeductedPointsNotification.sessionIntegrationID); } @Override public int hashCode() { - return Objects.hash(profileIntegrationID, loyaltyProgramID, subledgerID, amount, reason, typeOfChange, employeeName, userID, operation, startDate, expiryDate, sessionIntegrationID, notificationType); + return Objects.hash(profileIntegrationID, loyaltyProgramID, subledgerID, amount, reason, typeOfChange, employeeName, userID, operation, startDate, expiryDate, sessionIntegrationID); } @@ -563,7 +489,6 @@ public String toString() { sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" sessionIntegrationID: ").append(toIndentedString(sessionIntegrationID)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/AudienceReference.java b/src/main/java/one/talon/model/AudienceReference.java new file mode 100644 index 00000000..c6e7f2b8 --- /dev/null +++ b/src/main/java/one/talon/model/AudienceReference.java @@ -0,0 +1,156 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * AudienceReference + */ + +public class AudienceReference { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_INTEGRATION = "integration"; + @SerializedName(SERIALIZED_NAME_INTEGRATION) + private String integration; + + public static final String SERIALIZED_NAME_INTEGRATION_ID = "integrationId"; + @SerializedName(SERIALIZED_NAME_INTEGRATION_ID) + private String integrationId; + + + public AudienceReference id(Long id) { + + this.id = id; + return this; + } + + /** + * The ID of the audience. + * @return id + **/ + @ApiModelProperty(required = true, value = "The ID of the audience.") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public AudienceReference integration(String integration) { + + this.integration = integration; + return this; + } + + /** + * The third-party integration of the audience. + * @return integration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The third-party integration of the audience.") + + public String getIntegration() { + return integration; + } + + + public void setIntegration(String integration) { + this.integration = integration; + } + + + public AudienceReference integrationId(String integrationId) { + + this.integrationId = integrationId; + return this; + } + + /** + * The ID of this audience in the third-party integration. + * @return integrationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "382370BKDB946", value = "The ID of this audience in the third-party integration.") + + public String getIntegrationId() { + return integrationId; + } + + + public void setIntegrationId(String integrationId) { + this.integrationId = integrationId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AudienceReference audienceReference = (AudienceReference) o; + return Objects.equals(this.id, audienceReference.id) && + Objects.equals(this.integration, audienceReference.integration) && + Objects.equals(this.integrationId, audienceReference.integrationId); + } + + @Override + public int hashCode() { + return Objects.hash(id, integration, integrationId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AudienceReference {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" integration: ").append(toIndentedString(integration)).append("\n"); + sb.append(" integrationId: ").append(toIndentedString(integrationId)).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/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/CardAddedDeductedPointsNotification.java b/src/main/java/one/talon/model/CardAddedDeductedPointsNotification.java index d02968d2..13fe7b2c 100644 --- a/src/main/java/one/talon/model/CardAddedDeductedPointsNotification.java +++ b/src/main/java/one/talon/model/CardAddedDeductedPointsNotification.java @@ -177,57 +177,6 @@ public OperationEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_SESSION_INTEGRATION_I_D) private String sessionIntegrationID; - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - LOYALTYCARDPOINTSDEDUCTED("LoyaltyCardPointsDeducted"), - - LOYALTYCARDPOINTSADDED("LoyaltyCardPointsAdded"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public static final String SERIALIZED_NAME_CARD_IDENTIFIER = "CardIdentifier"; @SerializedName(SERIALIZED_NAME_CARD_IDENTIFIER) private String cardIdentifier; @@ -510,28 +459,6 @@ public void setSessionIntegrationID(String sessionIntegrationID) { } - public CardAddedDeductedPointsNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - public CardAddedDeductedPointsNotification cardIdentifier(String cardIdentifier) { this.cardIdentifier = cardIdentifier; @@ -597,14 +524,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.startDate, cardAddedDeductedPointsNotification.startDate) && Objects.equals(this.expiryDate, cardAddedDeductedPointsNotification.expiryDate) && Objects.equals(this.sessionIntegrationID, cardAddedDeductedPointsNotification.sessionIntegrationID) && - Objects.equals(this.notificationType, cardAddedDeductedPointsNotification.notificationType) && Objects.equals(this.cardIdentifier, cardAddedDeductedPointsNotification.cardIdentifier) && Objects.equals(this.usersPerCardLimit, cardAddedDeductedPointsNotification.usersPerCardLimit); } @Override public int hashCode() { - return Objects.hash(profileIntegrationIDs, loyaltyProgramID, subledgerID, amount, reason, typeOfChange, employeeName, userID, operation, startDate, expiryDate, sessionIntegrationID, notificationType, cardIdentifier, usersPerCardLimit); + return Objects.hash(profileIntegrationIDs, loyaltyProgramID, subledgerID, amount, reason, typeOfChange, employeeName, userID, operation, startDate, expiryDate, sessionIntegrationID, cardIdentifier, usersPerCardLimit); } @@ -624,7 +550,6 @@ public String toString() { sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" sessionIntegrationID: ").append(toIndentedString(sessionIntegrationID)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append(" cardIdentifier: ").append(toIndentedString(cardIdentifier)).append("\n"); sb.append(" usersPerCardLimit: ").append(toIndentedString(usersPerCardLimit)).append("\n"); sb.append("}"); diff --git a/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java b/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java index 61ad9d95..87a7e0d9 100644 --- a/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java +++ b/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java @@ -32,6 +32,10 @@ @ApiModel(description = "Log entry for a given loyalty card transaction.") public class CardLedgerTransactionLogEntry { + public static final String SERIALIZED_NAME_TRANSACTION_U_U_I_D = "transactionUUID"; + @SerializedName(SERIALIZED_NAME_TRANSACTION_U_U_I_D) + private String transactionUUID; + public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; @@ -132,6 +136,28 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { private Long id; + public CardLedgerTransactionLogEntry transactionUUID(String transactionUUID) { + + this.transactionUUID = transactionUUID; + return this; + } + + /** + * Unique identifier of the transaction in the UUID format. + * @return transactionUUID + **/ + @ApiModelProperty(example = "ce59f12a-f53b-4014-a745-636d93f2bd3f", required = true, value = "Unique identifier of the transaction in the UUID format.") + + public String getTransactionUUID() { + return transactionUUID; + } + + + public void setTransactionUUID(String transactionUUID) { + this.transactionUUID = transactionUUID; + } + + public CardLedgerTransactionLogEntry created(OffsetDateTime created) { this.created = created; @@ -430,7 +456,8 @@ public boolean equals(java.lang.Object o) { return false; } CardLedgerTransactionLogEntry cardLedgerTransactionLogEntry = (CardLedgerTransactionLogEntry) o; - return Objects.equals(this.created, cardLedgerTransactionLogEntry.created) && + return Objects.equals(this.transactionUUID, cardLedgerTransactionLogEntry.transactionUUID) && + Objects.equals(this.created, cardLedgerTransactionLogEntry.created) && Objects.equals(this.programId, cardLedgerTransactionLogEntry.programId) && Objects.equals(this.cardIdentifier, cardLedgerTransactionLogEntry.cardIdentifier) && Objects.equals(this.applicationId, cardLedgerTransactionLogEntry.applicationId) && @@ -447,7 +474,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(created, programId, cardIdentifier, applicationId, sessionId, customerSessionId, type, name, startDate, expiryDate, subledgerId, amount, id); + return Objects.hash(transactionUUID, created, programId, cardIdentifier, applicationId, sessionId, customerSessionId, type, name, startDate, expiryDate, subledgerId, amount, id); } @@ -455,6 +482,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CardLedgerTransactionLogEntry {\n"); + sb.append(" transactionUUID: ").append(toIndentedString(transactionUUID)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" programId: ").append(toIndentedString(programId)).append("\n"); sb.append(" cardIdentifier: ").append(toIndentedString(cardIdentifier)).append("\n"); diff --git a/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java b/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java index 68505a91..eda5b381 100644 --- a/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java @@ -32,6 +32,10 @@ @ApiModel(description = "Log entry for a given loyalty card transaction.") public class CardLedgerTransactionLogEntryIntegrationAPI { + public static final String SERIALIZED_NAME_TRANSACTION_U_U_I_D = "transactionUUID"; + @SerializedName(SERIALIZED_NAME_TRANSACTION_U_U_I_D) + private String transactionUUID; + public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; @@ -132,6 +136,28 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { private String ruleName; + public CardLedgerTransactionLogEntryIntegrationAPI transactionUUID(String transactionUUID) { + + this.transactionUUID = transactionUUID; + return this; + } + + /** + * Unique identifier of the transaction in the UUID format. + * @return transactionUUID + **/ + @ApiModelProperty(example = "ce59f12a-f53b-4014-a745-636d93f2bd3f", required = true, value = "Unique identifier of the transaction in the UUID format.") + + public String getTransactionUUID() { + return transactionUUID; + } + + + public void setTransactionUUID(String transactionUUID) { + this.transactionUUID = transactionUUID; + } + + public CardLedgerTransactionLogEntryIntegrationAPI created(OffsetDateTime created) { this.created = created; @@ -430,7 +456,8 @@ public boolean equals(java.lang.Object o) { return false; } CardLedgerTransactionLogEntryIntegrationAPI cardLedgerTransactionLogEntryIntegrationAPI = (CardLedgerTransactionLogEntryIntegrationAPI) o; - return Objects.equals(this.created, cardLedgerTransactionLogEntryIntegrationAPI.created) && + return Objects.equals(this.transactionUUID, cardLedgerTransactionLogEntryIntegrationAPI.transactionUUID) && + Objects.equals(this.created, cardLedgerTransactionLogEntryIntegrationAPI.created) && Objects.equals(this.programId, cardLedgerTransactionLogEntryIntegrationAPI.programId) && Objects.equals(this.cardIdentifier, cardLedgerTransactionLogEntryIntegrationAPI.cardIdentifier) && Objects.equals(this.customerSessionId, cardLedgerTransactionLogEntryIntegrationAPI.customerSessionId) && @@ -447,7 +474,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(created, programId, cardIdentifier, customerSessionId, type, name, startDate, expiryDate, subledgerId, amount, id, rulesetId, ruleName); + return Objects.hash(transactionUUID, created, programId, cardIdentifier, customerSessionId, type, name, startDate, expiryDate, subledgerId, amount, id, rulesetId, ruleName); } @@ -455,6 +482,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CardLedgerTransactionLogEntryIntegrationAPI {\n"); + sb.append(" transactionUUID: ").append(toIndentedString(transactionUUID)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" programId: ").append(toIndentedString(programId)).append("\n"); sb.append(" cardIdentifier: ").append(toIndentedString(cardIdentifier)).append("\n"); diff --git a/src/main/java/one/talon/model/ExpiringCardPointsNotification.java b/src/main/java/one/talon/model/ExpiringCardPointsNotification.java index dd68f5d2..d3961702 100644 --- a/src/main/java/one/talon/model/ExpiringCardPointsNotification.java +++ b/src/main/java/one/talon/model/ExpiringCardPointsNotification.java @@ -40,55 +40,6 @@ public class ExpiringCardPointsNotification { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - LOYALTYCARDPOINTSEXPIRING("LoyaltyCardPointsExpiring"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public ExpiringCardPointsNotification totalResultSize(Long totalResultSize) { @@ -139,28 +90,6 @@ public void setData(List data) { } - public ExpiringCardPointsNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,13 +100,12 @@ public boolean equals(java.lang.Object o) { } ExpiringCardPointsNotification expiringCardPointsNotification = (ExpiringCardPointsNotification) o; return Objects.equals(this.totalResultSize, expiringCardPointsNotification.totalResultSize) && - Objects.equals(this.data, expiringCardPointsNotification.data) && - Objects.equals(this.notificationType, expiringCardPointsNotification.notificationType); + Objects.equals(this.data, expiringCardPointsNotification.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data, notificationType); + return Objects.hash(totalResultSize, data); } @@ -187,7 +115,6 @@ public String toString() { sb.append("class ExpiringCardPointsNotification {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/ExpiringCouponsNotification.java b/src/main/java/one/talon/model/ExpiringCouponsNotification.java index bd530ff0..4757aa94 100644 --- a/src/main/java/one/talon/model/ExpiringCouponsNotification.java +++ b/src/main/java/one/talon/model/ExpiringCouponsNotification.java @@ -40,55 +40,6 @@ public class ExpiringCouponsNotification { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - COUPONCODEEXPIRING("CouponCodeExpiring"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public ExpiringCouponsNotification totalResultSize(Long totalResultSize) { @@ -139,28 +90,6 @@ public void setData(List data) { } - public ExpiringCouponsNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,13 +100,12 @@ public boolean equals(java.lang.Object o) { } ExpiringCouponsNotification expiringCouponsNotification = (ExpiringCouponsNotification) o; return Objects.equals(this.totalResultSize, expiringCouponsNotification.totalResultSize) && - Objects.equals(this.data, expiringCouponsNotification.data) && - Objects.equals(this.notificationType, expiringCouponsNotification.notificationType); + Objects.equals(this.data, expiringCouponsNotification.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data, notificationType); + return Objects.hash(totalResultSize, data); } @@ -187,7 +115,6 @@ public String toString() { sb.append("class ExpiringCouponsNotification {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/ExpiringPointsNotification.java b/src/main/java/one/talon/model/ExpiringPointsNotification.java index 3de4b454..cc70829a 100644 --- a/src/main/java/one/talon/model/ExpiringPointsNotification.java +++ b/src/main/java/one/talon/model/ExpiringPointsNotification.java @@ -40,55 +40,6 @@ public class ExpiringPointsNotification { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - LOYALTYPOINTSEXPIRING("LoyaltyPointsExpiring"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public ExpiringPointsNotification totalResultSize(Long totalResultSize) { @@ -139,28 +90,6 @@ public void setData(List data) { } - public ExpiringPointsNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,13 +100,12 @@ public boolean equals(java.lang.Object o) { } ExpiringPointsNotification expiringPointsNotification = (ExpiringPointsNotification) o; return Objects.equals(this.totalResultSize, expiringPointsNotification.totalResultSize) && - Objects.equals(this.data, expiringPointsNotification.data) && - Objects.equals(this.notificationType, expiringPointsNotification.notificationType); + Objects.equals(this.data, expiringPointsNotification.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data, notificationType); + return Objects.hash(totalResultSize, data); } @@ -187,7 +115,6 @@ public String toString() { sb.append("class ExpiringPointsNotification {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectProps.java b/src/main/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectProps.java index c0f15c2c..dc3ae9b2 100644 --- a/src/main/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectProps.java +++ b/src/main/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectProps.java @@ -49,9 +49,13 @@ public class ExtendLoyaltyPointsExpiryDateEffectProps { @SerializedName(SERIALIZED_NAME_TRANSACTION_U_U_I_DS) private List transactionUUIDs = null; - public static final String SERIALIZED_NAME_PREVIOUS_EXPIRATION_DATE = "previousExpirationDate"; - @SerializedName(SERIALIZED_NAME_PREVIOUS_EXPIRATION_DATE) - private OffsetDateTime previousExpirationDate; + public static final String SERIALIZED_NAME_PREVIOUS_EXPIRATION_DATES = "previousExpirationDates"; + @SerializedName(SERIALIZED_NAME_PREVIOUS_EXPIRATION_DATES) + private List previousExpirationDates = null; + + public static final String SERIALIZED_NAME_NEW_EXPIRATION_DATES = "newExpirationDates"; + @SerializedName(SERIALIZED_NAME_NEW_EXPIRATION_DATES) + private List newExpirationDates = null; public ExtendLoyaltyPointsExpiryDateEffectProps programId(Long programId) { @@ -151,25 +155,65 @@ public void setTransactionUUIDs(List transactionUUIDs) { } - public ExtendLoyaltyPointsExpiryDateEffectProps previousExpirationDate(OffsetDateTime previousExpirationDate) { + public ExtendLoyaltyPointsExpiryDateEffectProps previousExpirationDates(List previousExpirationDates) { + + this.previousExpirationDates = previousExpirationDates; + return this; + } + + public ExtendLoyaltyPointsExpiryDateEffectProps addPreviousExpirationDatesItem(OffsetDateTime previousExpirationDatesItem) { + if (this.previousExpirationDates == null) { + this.previousExpirationDates = new ArrayList(); + } + this.previousExpirationDates.add(previousExpirationDatesItem); + return this; + } + + /** + * Expiry dates of all active and pending points transactions before applying the extension. + * @return previousExpirationDates + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Expiry dates of all active and pending points transactions before applying the extension.") + + public List getPreviousExpirationDates() { + return previousExpirationDates; + } + + + public void setPreviousExpirationDates(List previousExpirationDates) { + this.previousExpirationDates = previousExpirationDates; + } + + + public ExtendLoyaltyPointsExpiryDateEffectProps newExpirationDates(List newExpirationDates) { - this.previousExpirationDate = previousExpirationDate; + this.newExpirationDates = newExpirationDates; + return this; + } + + public ExtendLoyaltyPointsExpiryDateEffectProps addNewExpirationDatesItem(OffsetDateTime newExpirationDatesItem) { + if (this.newExpirationDates == null) { + this.newExpirationDates = new ArrayList(); + } + this.newExpirationDates.add(newExpirationDatesItem); return this; } /** - * Expiry date before applying the extension. - * @return previousExpirationDate + * Expiry dates of all active and pending points transactions after applying the extension. + * @return newExpirationDates **/ - @ApiModelProperty(required = true, value = "Expiry date before applying the extension.") + @javax.annotation.Nullable + @ApiModelProperty(value = "Expiry dates of all active and pending points transactions after applying the extension.") - public OffsetDateTime getPreviousExpirationDate() { - return previousExpirationDate; + public List getNewExpirationDates() { + return newExpirationDates; } - public void setPreviousExpirationDate(OffsetDateTime previousExpirationDate) { - this.previousExpirationDate = previousExpirationDate; + public void setNewExpirationDates(List newExpirationDates) { + this.newExpirationDates = newExpirationDates; } @@ -186,12 +230,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.subLedgerId, extendLoyaltyPointsExpiryDateEffectProps.subLedgerId) && Objects.equals(this.extensionDuration, extendLoyaltyPointsExpiryDateEffectProps.extensionDuration) && Objects.equals(this.transactionUUIDs, extendLoyaltyPointsExpiryDateEffectProps.transactionUUIDs) && - Objects.equals(this.previousExpirationDate, extendLoyaltyPointsExpiryDateEffectProps.previousExpirationDate); + Objects.equals(this.previousExpirationDates, extendLoyaltyPointsExpiryDateEffectProps.previousExpirationDates) && + Objects.equals(this.newExpirationDates, extendLoyaltyPointsExpiryDateEffectProps.newExpirationDates); } @Override public int hashCode() { - return Objects.hash(programId, subLedgerId, extensionDuration, transactionUUIDs, previousExpirationDate); + return Objects.hash(programId, subLedgerId, extensionDuration, transactionUUIDs, previousExpirationDates, newExpirationDates); } @@ -203,7 +248,8 @@ public String toString() { sb.append(" subLedgerId: ").append(toIndentedString(subLedgerId)).append("\n"); sb.append(" extensionDuration: ").append(toIndentedString(extensionDuration)).append("\n"); sb.append(" transactionUUIDs: ").append(toIndentedString(transactionUUIDs)).append("\n"); - sb.append(" previousExpirationDate: ").append(toIndentedString(previousExpirationDate)).append("\n"); + sb.append(" previousExpirationDates: ").append(toIndentedString(previousExpirationDates)).append("\n"); + sb.append(" newExpirationDates: ").append(toIndentedString(newExpirationDates)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/LabelTargetAudience.java b/src/main/java/one/talon/model/LabelTargetAudience.java new file mode 100644 index 00000000..968f225e --- /dev/null +++ b/src/main/java/one/talon/model/LabelTargetAudience.java @@ -0,0 +1,173 @@ +/* + * 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.AudienceReference; + +/** + * Represents the targeted audience. + */ +@ApiModel(description = "Represents the targeted audience. ") + +public class LabelTargetAudience { + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + AUDIENCE("AUDIENCE"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_AUDIENCE = "audience"; + @SerializedName(SERIALIZED_NAME_AUDIENCE) + private AudienceReference audience; + + + public LabelTargetAudience type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(required = true, value = "") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public LabelTargetAudience audience(AudienceReference audience) { + + this.audience = audience; + return this; + } + + /** + * Get audience + * @return audience + **/ + @ApiModelProperty(required = true, value = "") + + public AudienceReference getAudience() { + return audience; + } + + + public void setAudience(AudienceReference audience) { + this.audience = audience; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LabelTargetAudience labelTargetAudience = (LabelTargetAudience) o; + return Objects.equals(this.type, labelTargetAudience.type) && + Objects.equals(this.audience, labelTargetAudience.audience); + } + + @Override + public int hashCode() { + return Objects.hash(type, audience); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LabelTargetAudience {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" audience: ").append(toIndentedString(audience)).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/LabelTargetNone.java b/src/main/java/one/talon/model/LabelTargetNone.java new file mode 100644 index 00000000..c3c589c3 --- /dev/null +++ b/src/main/java/one/talon/model/LabelTargetNone.java @@ -0,0 +1,144 @@ +/* + * 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; + +/** + * Represents the target type when no entity is selected. + */ +@ApiModel(description = "Represents the target type when no entity is selected.") + +public class LabelTargetNone { + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + NONE("NONE"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + + public LabelTargetNone type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(required = true, value = "") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LabelTargetNone labelTargetNone = (LabelTargetNone) o; + return Objects.equals(this.type, labelTargetNone.type); + } + + @Override + public int hashCode() { + return Objects.hash(type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LabelTargetNone {\n"); + sb.append(" type: ").append(toIndentedString(type)).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/LedgerTransactionLogEntryIntegrationAPI.java b/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java index 36146733..b95acaae 100644 --- a/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java @@ -28,11 +28,15 @@ import org.threeten.bp.OffsetDateTime; /** - * Log entry for a given loyalty card transaction. + * Log entry for a given loyalty profile transaction. */ -@ApiModel(description = "Log entry for a given loyalty card transaction.") +@ApiModel(description = "Log entry for a given loyalty profile transaction.") public class LedgerTransactionLogEntryIntegrationAPI { + public static final String SERIALIZED_NAME_TRANSACTION_U_U_I_D = "transactionUUID"; + @SerializedName(SERIALIZED_NAME_TRANSACTION_U_U_I_D) + private String transactionUUID; + public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; @@ -133,6 +137,28 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { private LoyaltyLedgerEntryFlags flags; + public LedgerTransactionLogEntryIntegrationAPI transactionUUID(String transactionUUID) { + + this.transactionUUID = transactionUUID; + return this; + } + + /** + * Unique identifier of the transaction in the UUID format. + * @return transactionUUID + **/ + @ApiModelProperty(example = "ce59f12a-f53b-4014-a745-636d93f2bd3f", required = true, value = "Unique identifier of the transaction in the UUID format.") + + public String getTransactionUUID() { + return transactionUUID; + } + + + public void setTransactionUUID(String transactionUUID) { + this.transactionUUID = transactionUUID; + } + + public LedgerTransactionLogEntryIntegrationAPI created(OffsetDateTime created) { this.created = created; @@ -432,7 +458,8 @@ public boolean equals(java.lang.Object o) { return false; } LedgerTransactionLogEntryIntegrationAPI ledgerTransactionLogEntryIntegrationAPI = (LedgerTransactionLogEntryIntegrationAPI) o; - return Objects.equals(this.created, ledgerTransactionLogEntryIntegrationAPI.created) && + return Objects.equals(this.transactionUUID, ledgerTransactionLogEntryIntegrationAPI.transactionUUID) && + Objects.equals(this.created, ledgerTransactionLogEntryIntegrationAPI.created) && Objects.equals(this.programId, ledgerTransactionLogEntryIntegrationAPI.programId) && Objects.equals(this.customerSessionId, ledgerTransactionLogEntryIntegrationAPI.customerSessionId) && Objects.equals(this.type, ledgerTransactionLogEntryIntegrationAPI.type) && @@ -449,7 +476,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(created, programId, customerSessionId, type, name, startDate, expiryDate, subledgerId, amount, id, rulesetId, ruleName, flags); + return Objects.hash(transactionUUID, created, programId, customerSessionId, type, name, startDate, expiryDate, subledgerId, amount, id, rulesetId, ruleName, flags); } @@ -457,6 +484,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LedgerTransactionLogEntryIntegrationAPI {\n"); + sb.append(" transactionUUID: ").append(toIndentedString(transactionUUID)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" programId: ").append(toIndentedString(programId)).append("\n"); sb.append(" customerSessionId: ").append(toIndentedString(customerSessionId)).append("\n"); diff --git a/src/main/java/one/talon/model/LoyaltyProgramTransaction.java b/src/main/java/one/talon/model/LoyaltyProgramTransaction.java index bdff74aa..a9c497b5 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramTransaction.java +++ b/src/main/java/one/talon/model/LoyaltyProgramTransaction.java @@ -36,6 +36,10 @@ public class LoyaltyProgramTransaction { @SerializedName(SERIALIZED_NAME_ID) private Long id; + public static final String SERIALIZED_NAME_TRANSACTION_U_U_I_D = "transactionUUID"; + @SerializedName(SERIALIZED_NAME_TRANSACTION_U_U_I_D) + private String transactionUUID; + public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) private Long programId; @@ -178,6 +182,28 @@ public void setId(Long id) { } + public LoyaltyProgramTransaction transactionUUID(String transactionUUID) { + + this.transactionUUID = transactionUUID; + return this; + } + + /** + * Unique identifier of the transaction in the UUID format. + * @return transactionUUID + **/ + @ApiModelProperty(example = "ce59f12a-f53b-4014-a745-636d93f2bd3f", required = true, value = "Unique identifier of the transaction in the UUID format.") + + public String getTransactionUUID() { + return transactionUUID; + } + + + public void setTransactionUUID(String transactionUUID) { + this.transactionUUID = transactionUUID; + } + + public LoyaltyProgramTransaction programId(Long programId) { this.programId = programId; @@ -594,6 +620,7 @@ public boolean equals(java.lang.Object o) { } LoyaltyProgramTransaction loyaltyProgramTransaction = (LoyaltyProgramTransaction) o; return Objects.equals(this.id, loyaltyProgramTransaction.id) && + Objects.equals(this.transactionUUID, loyaltyProgramTransaction.transactionUUID) && Objects.equals(this.programId, loyaltyProgramTransaction.programId) && Objects.equals(this.campaignId, loyaltyProgramTransaction.campaignId) && Objects.equals(this.created, loyaltyProgramTransaction.created) && @@ -616,7 +643,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, programId, campaignId, created, type, amount, name, startDate, expiryDate, customerProfileId, cardIdentifier, subledgerId, customerSessionId, importId, userId, userEmail, rulesetId, ruleName, flags); + return Objects.hash(id, transactionUUID, programId, campaignId, created, type, amount, name, startDate, expiryDate, customerProfileId, cardIdentifier, subledgerId, customerSessionId, importId, userId, userEmail, rulesetId, ruleName, flags); } @@ -625,6 +652,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LoyaltyProgramTransaction {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" transactionUUID: ").append(toIndentedString(transactionUUID)).append("\n"); sb.append(" programId: ").append(toIndentedString(programId)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); diff --git a/src/main/java/one/talon/model/NewPriceAdjustment.java b/src/main/java/one/talon/model/NewPriceAdjustment.java index 9f0891d5..856186ab 100644 --- a/src/main/java/one/talon/model/NewPriceAdjustment.java +++ b/src/main/java/one/talon/model/NewPriceAdjustment.java @@ -55,6 +55,10 @@ public class NewPriceAdjustment { @SerializedName(SERIALIZED_NAME_EFFECTIVE_UNTIL) private OffsetDateTime effectiveUntil; + public static final String SERIALIZED_NAME_CONTEXT_ID = "contextId"; + @SerializedName(SERIALIZED_NAME_CONTEXT_ID) + private String contextId; + public NewPriceAdjustment priceType(String priceType) { @@ -192,6 +196,29 @@ public void setEffectiveUntil(OffsetDateTime effectiveUntil) { } + public NewPriceAdjustment contextId(String contextId) { + + this.contextId = contextId; + return this; + } + + /** + * Identifier of the context of this price adjustment (e.g. summer sale). + * @return contextId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Summer2025", value = "Identifier of the context of this price adjustment (e.g. summer sale).") + + public String getContextId() { + return contextId; + } + + + public void setContextId(String contextId) { + this.contextId = contextId; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -206,12 +233,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.referenceId, newPriceAdjustment.referenceId) && Objects.equals(this.calculatedAt, newPriceAdjustment.calculatedAt) && Objects.equals(this.effectiveFrom, newPriceAdjustment.effectiveFrom) && - Objects.equals(this.effectiveUntil, newPriceAdjustment.effectiveUntil); + Objects.equals(this.effectiveUntil, newPriceAdjustment.effectiveUntil) && + Objects.equals(this.contextId, newPriceAdjustment.contextId); } @Override public int hashCode() { - return Objects.hash(priceType, price, referenceId, calculatedAt, effectiveFrom, effectiveUntil); + return Objects.hash(priceType, price, referenceId, calculatedAt, effectiveFrom, effectiveUntil, contextId); } @@ -225,6 +253,7 @@ public String toString() { sb.append(" calculatedAt: ").append(toIndentedString(calculatedAt)).append("\n"); sb.append(" effectiveFrom: ").append(toIndentedString(effectiveFrom)).append("\n"); sb.append(" effectiveUntil: ").append(toIndentedString(effectiveUntil)).append("\n"); + sb.append(" contextId: ").append(toIndentedString(contextId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/PendingActivePointsNotification.java b/src/main/java/one/talon/model/PendingActivePointsNotification.java index 76960148..9dce58d4 100644 --- a/src/main/java/one/talon/model/PendingActivePointsNotification.java +++ b/src/main/java/one/talon/model/PendingActivePointsNotification.java @@ -40,55 +40,6 @@ public class PendingActivePointsNotification { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - LOYALTYPOINTSPENDINGTOACTIVE("LoyaltyPointsPendingToActive"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public PendingActivePointsNotification totalResultSize(Long totalResultSize) { @@ -139,28 +90,6 @@ public void setData(List data) { } - public PendingActivePointsNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,13 +100,12 @@ public boolean equals(java.lang.Object o) { } PendingActivePointsNotification pendingActivePointsNotification = (PendingActivePointsNotification) o; return Objects.equals(this.totalResultSize, pendingActivePointsNotification.totalResultSize) && - Objects.equals(this.data, pendingActivePointsNotification.data) && - Objects.equals(this.notificationType, pendingActivePointsNotification.notificationType); + Objects.equals(this.data, pendingActivePointsNotification.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data, notificationType); + return Objects.hash(totalResultSize, data); } @@ -187,7 +115,6 @@ public String toString() { sb.append("class PendingActivePointsNotification {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append("}"); return sb.toString(); } 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/main/java/one/talon/model/StrikethroughEffect.java b/src/main/java/one/talon/model/StrikethroughEffect.java index 8e090272..a60e01d0 100644 --- a/src/main/java/one/talon/model/StrikethroughEffect.java +++ b/src/main/java/one/talon/model/StrikethroughEffect.java @@ -23,6 +23,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; import org.threeten.bp.OffsetDateTime; /** @@ -63,6 +66,22 @@ public class StrikethroughEffect { @SerializedName(SERIALIZED_NAME_END_TIME) private OffsetDateTime endTime; + public static final String SERIALIZED_NAME_SELECTED_PRICE_TYPE = "selectedPriceType"; + @SerializedName(SERIALIZED_NAME_SELECTED_PRICE_TYPE) + private String selectedPriceType; + + public static final String SERIALIZED_NAME_SELECTED_PRICE = "selectedPrice"; + @SerializedName(SERIALIZED_NAME_SELECTED_PRICE) + private BigDecimal selectedPrice; + + public static final String SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID = "adjustmentReferenceId"; + @SerializedName(SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID) + private String adjustmentReferenceId; + + public static final String SERIALIZED_NAME_TARGETS = "targets"; + @SerializedName(SERIALIZED_NAME_TARGETS) + private List targets = null; + public StrikethroughEffect campaignId(Long campaignId) { @@ -242,6 +261,106 @@ public void setEndTime(OffsetDateTime endTime) { } + public StrikethroughEffect selectedPriceType(String selectedPriceType) { + + this.selectedPriceType = selectedPriceType; + return this; + } + + /** + * The selected price type for this cart item (e.g. the price for members only). + * @return selectedPriceType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "member", value = "The selected price type for this cart item (e.g. the price for members only).") + + public String getSelectedPriceType() { + return selectedPriceType; + } + + + public void setSelectedPriceType(String selectedPriceType) { + this.selectedPriceType = selectedPriceType; + } + + + public StrikethroughEffect selectedPrice(BigDecimal selectedPrice) { + + this.selectedPrice = selectedPrice; + return this; + } + + /** + * The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied. + * @return selectedPrice + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100.0", value = "The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied.") + + public BigDecimal getSelectedPrice() { + return selectedPrice; + } + + + public void setSelectedPrice(BigDecimal selectedPrice) { + this.selectedPrice = selectedPrice; + } + + + public StrikethroughEffect adjustmentReferenceId(String adjustmentReferenceId) { + + this.adjustmentReferenceId = adjustmentReferenceId; + return this; + } + + /** + * The reference identifier of the selected price adjustment for this cart item. + * @return adjustmentReferenceId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "68851723-e6fa-488f-ace9-112581e6c19b", value = "The reference identifier of the selected price adjustment for this cart item.") + + public String getAdjustmentReferenceId() { + return adjustmentReferenceId; + } + + + public void setAdjustmentReferenceId(String adjustmentReferenceId) { + this.adjustmentReferenceId = adjustmentReferenceId; + } + + + public StrikethroughEffect targets(List targets) { + + this.targets = targets; + return this; + } + + public StrikethroughEffect addTargetsItem(Object targetsItem) { + if (this.targets == null) { + this.targets = new ArrayList(); + } + this.targets.add(targetsItem); + return this; + } + + /** + * A list of entities (e.g. audiences) targeted by this effect. + * @return targets + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of entities (e.g. audiences) targeted by this effect.") + + public List getTargets() { + return targets; + } + + + public void setTargets(List targets) { + this.targets = targets; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -258,12 +377,16 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.type, strikethroughEffect.type) && Objects.equals(this.props, strikethroughEffect.props) && Objects.equals(this.startTime, strikethroughEffect.startTime) && - Objects.equals(this.endTime, strikethroughEffect.endTime); + Objects.equals(this.endTime, strikethroughEffect.endTime) && + Objects.equals(this.selectedPriceType, strikethroughEffect.selectedPriceType) && + Objects.equals(this.selectedPrice, strikethroughEffect.selectedPrice) && + Objects.equals(this.adjustmentReferenceId, strikethroughEffect.adjustmentReferenceId) && + Objects.equals(this.targets, strikethroughEffect.targets); } @Override public int hashCode() { - return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, type, props, startTime, endTime); + return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, type, props, startTime, endTime, selectedPriceType, selectedPrice, adjustmentReferenceId, targets); } @@ -279,6 +402,10 @@ public String toString() { sb.append(" props: ").append(toIndentedString(props)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" selectedPriceType: ").append(toIndentedString(selectedPriceType)).append("\n"); + sb.append(" selectedPrice: ").append(toIndentedString(selectedPrice)).append("\n"); + sb.append(" adjustmentReferenceId: ").append(toIndentedString(adjustmentReferenceId)).append("\n"); + sb.append(" targets: ").append(toIndentedString(targets)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/TierDowngradeNotification.java b/src/main/java/one/talon/model/TierDowngradeNotification.java index 148c089d..182f7bf4 100644 --- a/src/main/java/one/talon/model/TierDowngradeNotification.java +++ b/src/main/java/one/talon/model/TierDowngradeNotification.java @@ -40,55 +40,6 @@ public class TierDowngradeNotification { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - TIERDOWNGRADE("TierDowngrade"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public TierDowngradeNotification totalResultSize(Long totalResultSize) { @@ -139,28 +90,6 @@ public void setData(List data) { } - public TierDowngradeNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,13 +100,12 @@ public boolean equals(java.lang.Object o) { } TierDowngradeNotification tierDowngradeNotification = (TierDowngradeNotification) o; return Objects.equals(this.totalResultSize, tierDowngradeNotification.totalResultSize) && - Objects.equals(this.data, tierDowngradeNotification.data) && - Objects.equals(this.notificationType, tierDowngradeNotification.notificationType); + Objects.equals(this.data, tierDowngradeNotification.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data, notificationType); + return Objects.hash(totalResultSize, data); } @@ -187,7 +115,6 @@ public String toString() { sb.append("class TierDowngradeNotification {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/TierUpgradeNotification.java b/src/main/java/one/talon/model/TierUpgradeNotification.java index 40164ec3..c80841f4 100644 --- a/src/main/java/one/talon/model/TierUpgradeNotification.java +++ b/src/main/java/one/talon/model/TierUpgradeNotification.java @@ -40,55 +40,6 @@ public class TierUpgradeNotification { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - TIERUPGRADE("TierUpgrade"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public TierUpgradeNotification totalResultSize(Long totalResultSize) { @@ -139,28 +90,6 @@ public void setData(List data) { } - public TierUpgradeNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,13 +100,12 @@ public boolean equals(java.lang.Object o) { } TierUpgradeNotification tierUpgradeNotification = (TierUpgradeNotification) o; return Objects.equals(this.totalResultSize, tierUpgradeNotification.totalResultSize) && - Objects.equals(this.data, tierUpgradeNotification.data) && - Objects.equals(this.notificationType, tierUpgradeNotification.notificationType); + Objects.equals(this.data, tierUpgradeNotification.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data, notificationType); + return Objects.hash(totalResultSize, data); } @@ -187,7 +115,6 @@ public String toString() { sb.append("class TierUpgradeNotification {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/TierWillDowngradeNotification.java b/src/main/java/one/talon/model/TierWillDowngradeNotification.java index 46216485..3587904d 100644 --- a/src/main/java/one/talon/model/TierWillDowngradeNotification.java +++ b/src/main/java/one/talon/model/TierWillDowngradeNotification.java @@ -40,55 +40,6 @@ public class TierWillDowngradeNotification { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - /** - * The type of notification. - */ - @JsonAdapter(NotificationTypeEnum.Adapter.class) - public enum NotificationTypeEnum { - TIERWILLDOWNGRADE("TierWillDowngrade"); - - private String value; - - NotificationTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static NotificationTypeEnum fromValue(String value) { - for (NotificationTypeEnum b : NotificationTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return NotificationTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_NOTIFICATION_TYPE = "NotificationType"; - @SerializedName(SERIALIZED_NAME_NOTIFICATION_TYPE) - private NotificationTypeEnum notificationType; - public TierWillDowngradeNotification totalResultSize(Long totalResultSize) { @@ -139,28 +90,6 @@ public void setData(List data) { } - public TierWillDowngradeNotification notificationType(NotificationTypeEnum notificationType) { - - this.notificationType = notificationType; - return this; - } - - /** - * The type of notification. - * @return notificationType - **/ - @ApiModelProperty(required = true, value = "The type of notification.") - - public NotificationTypeEnum getNotificationType() { - return notificationType; - } - - - public void setNotificationType(NotificationTypeEnum notificationType) { - this.notificationType = notificationType; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,13 +100,12 @@ public boolean equals(java.lang.Object o) { } TierWillDowngradeNotification tierWillDowngradeNotification = (TierWillDowngradeNotification) o; return Objects.equals(this.totalResultSize, tierWillDowngradeNotification.totalResultSize) && - Objects.equals(this.data, tierWillDowngradeNotification.data) && - Objects.equals(this.notificationType, tierWillDowngradeNotification.notificationType); + Objects.equals(this.data, tierWillDowngradeNotification.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data, notificationType); + return Objects.hash(totalResultSize, data); } @@ -187,7 +115,6 @@ public String toString() { sb.append("class TierWillDowngradeNotification {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/test/java/one/talon/api/IntegrationApiTest.java b/src/test/java/one/talon/api/IntegrationApiTest.java index 0407926b..11bd3b12 100644 --- a/src/test/java/one/talon/api/IntegrationApiTest.java +++ b/src/test/java/one/talon/api/IntegrationApiTest.java @@ -377,9 +377,11 @@ public void getLoyaltyCardTransactionsTest() throws ApiException { String loyaltyTransactionType = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; + List customerSessionIDs = null; + List transactionUUIDs = null; Long pageSize = null; Long skip = null; - InlineResponse2003 response = api.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + InlineResponse2003 response = api.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, customerSessionIDs, transactionUUIDs, pageSize, skip); // TODO: test validations } @@ -417,13 +419,15 @@ public void getLoyaltyProgramProfilePointsTest() throws ApiException { public void getLoyaltyProgramProfileTransactionsTest() throws ApiException { Long loyaltyProgramId = null; String integrationId = null; + List customerSessionIDs = null; + List transactionUUIDs = null; String subledgerId = null; String loyaltyTransactionType = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; Long pageSize = null; Long skip = null; - InlineResponse2004 response = api.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + InlineResponse2004 response = api.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, customerSessionIDs, transactionUUIDs, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); // TODO: test validations } diff --git a/src/test/java/one/talon/api/ManagementApiTest.java b/src/test/java/one/talon/api/ManagementApiTest.java index 6c8586f6..dfb71f67 100644 --- a/src/test/java/one/talon/api/ManagementApiTest.java +++ b/src/test/java/one/talon/api/ManagementApiTest.java @@ -1091,7 +1091,7 @@ public void exportLoyaltyCardsTest() throws ApiException { /** * Export customer's transaction logs * - * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. + * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. - `flags`: The flags of the transaction, when applicable. The `createsNegativeBalance` flag indicates whether the transaction results in a negative balance. - `transactionUUID`: Unique identifier of the transaction in the UUID format. * * @throws ApiException * if the Api call fails @@ -2056,7 +2056,9 @@ public void getLoyaltyCardTransactionLogsTest() throws ApiException { Long pageSize = null; Long skip = null; String subledgerId = null; - InlineResponse20019 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); + List customerSessionIDs = null; + List transactionUUIDs = null; + InlineResponse20019 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); // TODO: test validations } @@ -2129,11 +2131,13 @@ public void getLoyaltyProgramTransactionsTest() throws ApiException { Long loyaltyProgramId = null; String loyaltyTransactionType = null; String subledgerId = null; + List customerSessionIDs = null; + List transactionUUIDs = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; Long pageSize = null; Long skip = null; - InlineResponse20017 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); + InlineResponse20017 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip); // TODO: test validations } diff --git a/src/test/java/one/talon/model/AddedDeductedPointsNotificationTest.java b/src/test/java/one/talon/model/AddedDeductedPointsNotificationTest.java index 379f93ae..478c4e4b 100644 --- a/src/test/java/one/talon/model/AddedDeductedPointsNotificationTest.java +++ b/src/test/java/one/talon/model/AddedDeductedPointsNotificationTest.java @@ -138,12 +138,4 @@ public void sessionIntegrationIDTest() { // TODO: test sessionIntegrationID } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - } diff --git a/src/test/java/one/talon/model/AudienceReferenceTest.java b/src/test/java/one/talon/model/AudienceReferenceTest.java new file mode 100644 index 00000000..dc010161 --- /dev/null +++ b/src/test/java/one/talon/model/AudienceReferenceTest.java @@ -0,0 +1,67 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AudienceReference + */ +public class AudienceReferenceTest { + private final AudienceReference model = new AudienceReference(); + + /** + * Model tests for AudienceReference + */ + @Test + public void testAudienceReference() { + // TODO: test AudienceReference + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'integration' + */ + @Test + public void integrationTest() { + // TODO: test integration + } + + /** + * Test the property 'integrationId' + */ + @Test + public void integrationIdTest() { + // TODO: test integrationId + } + +} 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/CardAddedDeductedPointsNotificationTest.java b/src/test/java/one/talon/model/CardAddedDeductedPointsNotificationTest.java index 42b7275e..f3472904 100644 --- a/src/test/java/one/talon/model/CardAddedDeductedPointsNotificationTest.java +++ b/src/test/java/one/talon/model/CardAddedDeductedPointsNotificationTest.java @@ -140,14 +140,6 @@ public void sessionIntegrationIDTest() { // TODO: test sessionIntegrationID } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - /** * Test the property 'cardIdentifier' */ diff --git a/src/test/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPITest.java b/src/test/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPITest.java index 9c3e71da..8c221fb7 100644 --- a/src/test/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPITest.java +++ b/src/test/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPITest.java @@ -42,6 +42,14 @@ public void testCardLedgerTransactionLogEntryIntegrationAPI() { // TODO: test CardLedgerTransactionLogEntryIntegrationAPI } + /** + * Test the property 'transactionUUID' + */ + @Test + public void transactionUUIDTest() { + // TODO: test transactionUUID + } + /** * Test the property 'created' */ diff --git a/src/test/java/one/talon/model/CardLedgerTransactionLogEntryTest.java b/src/test/java/one/talon/model/CardLedgerTransactionLogEntryTest.java index ffa40191..8c1ec863 100644 --- a/src/test/java/one/talon/model/CardLedgerTransactionLogEntryTest.java +++ b/src/test/java/one/talon/model/CardLedgerTransactionLogEntryTest.java @@ -42,6 +42,14 @@ public void testCardLedgerTransactionLogEntry() { // TODO: test CardLedgerTransactionLogEntry } + /** + * Test the property 'transactionUUID' + */ + @Test + public void transactionUUIDTest() { + // TODO: test transactionUUID + } + /** * Test the property 'created' */ diff --git a/src/test/java/one/talon/model/ExpiringCardPointsNotificationTest.java b/src/test/java/one/talon/model/ExpiringCardPointsNotificationTest.java index 8282fb64..bb4ba496 100644 --- a/src/test/java/one/talon/model/ExpiringCardPointsNotificationTest.java +++ b/src/test/java/one/talon/model/ExpiringCardPointsNotificationTest.java @@ -59,12 +59,4 @@ public void dataTest() { // TODO: test data } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - } diff --git a/src/test/java/one/talon/model/ExpiringCouponsNotificationTest.java b/src/test/java/one/talon/model/ExpiringCouponsNotificationTest.java index 3ad2b720..54582251 100644 --- a/src/test/java/one/talon/model/ExpiringCouponsNotificationTest.java +++ b/src/test/java/one/talon/model/ExpiringCouponsNotificationTest.java @@ -59,12 +59,4 @@ public void dataTest() { // TODO: test data } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - } diff --git a/src/test/java/one/talon/model/ExpiringPointsNotificationTest.java b/src/test/java/one/talon/model/ExpiringPointsNotificationTest.java index 55728fd2..dca2bfce 100644 --- a/src/test/java/one/talon/model/ExpiringPointsNotificationTest.java +++ b/src/test/java/one/talon/model/ExpiringPointsNotificationTest.java @@ -59,12 +59,4 @@ public void dataTest() { // TODO: test data } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - } diff --git a/src/test/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectPropsTest.java b/src/test/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectPropsTest.java index fa70ad38..ba2998fc 100644 --- a/src/test/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectPropsTest.java +++ b/src/test/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectPropsTest.java @@ -76,11 +76,19 @@ public void transactionUUIDsTest() { } /** - * Test the property 'previousExpirationDate' + * Test the property 'previousExpirationDates' */ @Test - public void previousExpirationDateTest() { - // TODO: test previousExpirationDate + public void previousExpirationDatesTest() { + // TODO: test previousExpirationDates + } + + /** + * Test the property 'newExpirationDates' + */ + @Test + public void newExpirationDatesTest() { + // TODO: test newExpirationDates } } diff --git a/src/test/java/one/talon/model/LabelTargetAudienceTest.java b/src/test/java/one/talon/model/LabelTargetAudienceTest.java new file mode 100644 index 00000000..2241319b --- /dev/null +++ b/src/test/java/one/talon/model/LabelTargetAudienceTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import one.talon.model.AudienceReference; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for LabelTargetAudience + */ +public class LabelTargetAudienceTest { + private final LabelTargetAudience model = new LabelTargetAudience(); + + /** + * Model tests for LabelTargetAudience + */ + @Test + public void testLabelTargetAudience() { + // TODO: test LabelTargetAudience + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'audience' + */ + @Test + public void audienceTest() { + // TODO: test audience + } + +} diff --git a/src/test/java/one/talon/model/LabelTargetNoneTest.java b/src/test/java/one/talon/model/LabelTargetNoneTest.java new file mode 100644 index 00000000..a27b8616 --- /dev/null +++ b/src/test/java/one/talon/model/LabelTargetNoneTest.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 LabelTargetNone + */ +public class LabelTargetNoneTest { + private final LabelTargetNone model = new LabelTargetNone(); + + /** + * Model tests for LabelTargetNone + */ + @Test + public void testLabelTargetNone() { + // TODO: test LabelTargetNone + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/src/test/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPITest.java b/src/test/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPITest.java index beef8954..023686d9 100644 --- a/src/test/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPITest.java +++ b/src/test/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPITest.java @@ -43,6 +43,14 @@ public void testLedgerTransactionLogEntryIntegrationAPI() { // TODO: test LedgerTransactionLogEntryIntegrationAPI } + /** + * Test the property 'transactionUUID' + */ + @Test + public void transactionUUIDTest() { + // TODO: test transactionUUID + } + /** * Test the property 'created' */ diff --git a/src/test/java/one/talon/model/LoyaltyProgramTransactionTest.java b/src/test/java/one/talon/model/LoyaltyProgramTransactionTest.java index dfa998cd..a2a6db87 100644 --- a/src/test/java/one/talon/model/LoyaltyProgramTransactionTest.java +++ b/src/test/java/one/talon/model/LoyaltyProgramTransactionTest.java @@ -51,6 +51,14 @@ public void idTest() { // TODO: test id } + /** + * Test the property 'transactionUUID' + */ + @Test + public void transactionUUIDTest() { + // TODO: test transactionUUID + } + /** * Test the property 'programId' */ diff --git a/src/test/java/one/talon/model/NewPriceAdjustmentTest.java b/src/test/java/one/talon/model/NewPriceAdjustmentTest.java index 606ec708..6de20d6c 100644 --- a/src/test/java/one/talon/model/NewPriceAdjustmentTest.java +++ b/src/test/java/one/talon/model/NewPriceAdjustmentTest.java @@ -90,4 +90,12 @@ public void effectiveUntilTest() { // TODO: test effectiveUntil } + /** + * Test the property 'contextId' + */ + @Test + public void contextIdTest() { + // TODO: test contextId + } + } diff --git a/src/test/java/one/talon/model/PendingActivePointsNotificationTest.java b/src/test/java/one/talon/model/PendingActivePointsNotificationTest.java index c1d65aa8..c37a7f69 100644 --- a/src/test/java/one/talon/model/PendingActivePointsNotificationTest.java +++ b/src/test/java/one/talon/model/PendingActivePointsNotificationTest.java @@ -59,12 +59,4 @@ public void dataTest() { // TODO: test data } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - } 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' */ diff --git a/src/test/java/one/talon/model/StrikethroughEffectTest.java b/src/test/java/one/talon/model/StrikethroughEffectTest.java index ee75ce3f..832bc799 100644 --- a/src/test/java/one/talon/model/StrikethroughEffectTest.java +++ b/src/test/java/one/talon/model/StrikethroughEffectTest.java @@ -21,6 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; import org.threeten.bp.OffsetDateTime; import org.junit.Assert; import org.junit.Ignore; @@ -105,4 +108,36 @@ public void endTimeTest() { // TODO: test endTime } + /** + * Test the property 'selectedPriceType' + */ + @Test + public void selectedPriceTypeTest() { + // TODO: test selectedPriceType + } + + /** + * Test the property 'selectedPrice' + */ + @Test + public void selectedPriceTest() { + // TODO: test selectedPrice + } + + /** + * Test the property 'adjustmentReferenceId' + */ + @Test + public void adjustmentReferenceIdTest() { + // TODO: test adjustmentReferenceId + } + + /** + * Test the property 'targets' + */ + @Test + public void targetsTest() { + // TODO: test targets + } + } diff --git a/src/test/java/one/talon/model/TierDowngradeNotificationTest.java b/src/test/java/one/talon/model/TierDowngradeNotificationTest.java index 73f75af9..4d35cacd 100644 --- a/src/test/java/one/talon/model/TierDowngradeNotificationTest.java +++ b/src/test/java/one/talon/model/TierDowngradeNotificationTest.java @@ -59,12 +59,4 @@ public void dataTest() { // TODO: test data } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - } diff --git a/src/test/java/one/talon/model/TierUpgradeNotificationTest.java b/src/test/java/one/talon/model/TierUpgradeNotificationTest.java index 1e72de68..7b7c9205 100644 --- a/src/test/java/one/talon/model/TierUpgradeNotificationTest.java +++ b/src/test/java/one/talon/model/TierUpgradeNotificationTest.java @@ -59,12 +59,4 @@ public void dataTest() { // TODO: test data } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - } diff --git a/src/test/java/one/talon/model/TierWillDowngradeNotificationTest.java b/src/test/java/one/talon/model/TierWillDowngradeNotificationTest.java index 2e9f510b..8d1ce587 100644 --- a/src/test/java/one/talon/model/TierWillDowngradeNotificationTest.java +++ b/src/test/java/one/talon/model/TierWillDowngradeNotificationTest.java @@ -59,12 +59,4 @@ public void dataTest() { // TODO: test data } - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - }